Skip to content

Fix misleading _time_secs column name to _time_min#120

Open
vivekJax wants to merge 1 commit intomainfrom
fix/rename-time-secs-to-time-min
Open

Fix misleading _time_secs column name to _time_min#120
vivekJax wants to merge 1 commit intomainfrom
fix/rename-time-secs-to-time-min

Conversation

@vivekJax
Copy link

Summary

  • Renamed the aggregated behavior time column from _time_secs to _time_min in both the Python (behavior_summaries.py) and R (behavior_summaries.R) implementations.
  • The formula proportion_of_behavior * bin_size * 5 produces a value in minutes (e.g. bin_size=4 yields a 20-minute window scaled by the behavior proportion), but the column was labeled _time_secs, which is incorrect and misleading for downstream consumers.

Details

Files changed:

  • support_code/behavior_summaries.py — column renamed from bin_sum_{n}.{behavior}_time_secs to bin_sum_{n}.{behavior}_time_min
  • support_code/behavior_summaries.R — column renamed from bin_avg_{n}.{behavior}_time_secs to bin_avg_{n}.{behavior}_time_min

Breaking change: Any downstream notebooks, scripts, or dashboards that reference columns like bin_sum_20.grooming_time_secs must update to bin_sum_20.grooming_time_min.

Test plan

  • Ran full test suite: 2,302 passed, 10 skipped, 0 failures
  • Verify no downstream pipelines or analysis scripts reference the old _time_secs column name
  • Confirm output CSV column names are correct after a pipeline run

Made with Cursor

The aggregated behavior time column was named `_time_secs` but the
formula computes `proportion_of_behavior * bin_size * 5`, which yields
a value in minutes (e.g. bin_size=4 produces a 20-minute window scaled
by the proportion of time spent in the behavior). Rename to `_time_min`
in both the Python and R implementations to accurately reflect the unit.

Breaking change: downstream consumers of the output CSV that reference
columns like `bin_sum_20.grooming_time_secs` must update to
`bin_sum_20.grooming_time_min`.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant