-
Notifications
You must be signed in to change notification settings - Fork 103
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
end_time excludes messages that occur at the same time #1276
Comments
Hmm, could it be as simple as changing these mcap/python/mcap/mcap/reader.py Lines 314 to 315 in c8afa1e
mcap/python/mcap/mcap/reader.py Lines 93 to 94 in c8afa1e
mcap/python/mcap/mcap/reader.py Lines 527 to 528 in c8afa1e
And I guess the question is whether the API was really intended to be inclusive or exclusive... |
Change looks simple but yeah, the unfortunate part of making it inclusive (even though it matches the docs) is that you can't use an |
I don't know how relevant it is here, but for API queries we made the decision to make end time inclusive rather than exclusive. The justification is documented in https://github.com/foxglove/app/pull/5868 but in summary:
|
Purely based on Python's usual behavior with bounds, I would also lean toward simply updating the docs ( |
Description
Steps To Reproduce
Expected Behavior
According to the documentation here, messages that were logged either before
start_time
or afterend_time
aren't returned by the iterator, but the iterator appears to also exclude messages that were logged at the same time asend_time
.The text was updated successfully, but these errors were encountered: