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: test_index_generation generates the last batch twice #25

Merged
merged 1 commit into from Jun 8, 2020

Conversation

JensDA
Copy link
Contributor

@JensDA JensDA commented May 28, 2020

The error case can be tested by e.g. executing test_index_generation(False, 5, 5).

Due to right and/or right_in being incremented during the last loop in the while loop above, their values become greater than (len_in-1), thus triggering the "cover the last image" case when it is not needed.

The error case can be tested by e.g. executing test_index_generation(False, 5, 5).
Due to right and/or right_in being incremented during the last loop in the while loop above, their values become greater than (len_in-1), thus triggering the "cover the last image" case when it is not needed.
@Mukosame Mukosame merged commit 22238b0 into Mukosame:master Jun 8, 2020
@Mukosame
Copy link
Owner

Mukosame commented Jun 8, 2020

Thanks, @JensDA!

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