Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error when settings timestamps #377

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

h-mayorquin
Copy link
Collaborator

Related to this:

#376

Should make more clear what happens when set_timestamps fails.

@h-mayorquin
Copy link
Collaborator Author

h-mayorquin commented Oct 18, 2024

I really don't like those tests that check for the assertion comment. I find them hard to hard to maintain as I need to copy-paste and deal with terminal texting issues.

f"Mismatch between the number of frames and timestamps: "
f"{num_frames} frames, but {num_timestamps} timestamps provided. "
"Ensure the length of 'times' matches the number of frames."
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also good to understand if you have more frames than timestamps or the opposite

@h-mayorquin h-mayorquin merged commit 2cbf4f0 into main Oct 21, 2024
29 checks passed
@h-mayorquin h-mayorquin deleted the add_better_error_for_set_timestamps branch October 21, 2024 15:19
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.

2 participants