Skip to content

Conversation

@bergsalex
Copy link
Contributor

Fixes a bug in JABS-postprocess where behavior summary tables were truncated to 60 minutes when bout data contains identical placeholder timestamps.

Users reported that behavior metrics were not being generated beyond 60 minutes, despite videos being 150+ minutes long. Investigation revealed that when all bouts in a bout table have identical timestamps (e.g., 1970-01-01 00:00:00), the bouts_to_bins() method would only generate exactly 60 minutes of summary data.

There was existing fallback logic that calculates time ranges based on frame counts only triggered on specific exceptions (KeyError, ValueError, TypeError), but not for this edge case.

@bergsalex bergsalex self-assigned this Nov 10, 2025
@bergsalex bergsalex added the bug Something isn't working label Nov 10, 2025
@bergsalex bergsalex marked this pull request as ready for review November 11, 2025 20:06
@bergsalex bergsalex merged commit 287aa60 into master Nov 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants