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

Fix CSV parse #1241

Merged
merged 1 commit into from
May 11, 2022
Merged

Fix CSV parse #1241

merged 1 commit into from
May 11, 2022

Conversation

subdavis
Copy link
Contributor

@subdavis subdavis commented May 11, 2022

Image sequences with tracks and more than 256 images will fail to load annotations.

I was bamboozled by cpython: https://stackoverflow.com/questions/2239737/is-it-better-to-use-is-or-for-number-comparison-in-python

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Ahh, it's the similar gotchas to python floor division (//) where it does what you think except not really because it will return an integer as type float if one of the values is a float. So it only returns an int if both are ints.
https://peps.python.org/pep-0238/#semantics-of-floor-division

@subdavis subdavis merged commit c1d990d into main May 11, 2022
@subdavis subdavis deleted the fix-CSV-parser branch May 11, 2022 16:10
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.

None yet

2 participants