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

ImageSequence slicing: handle negative offset #485

Merged
merged 3 commits into from
Feb 16, 2022
Merged

Conversation

dwpaley
Copy link

@dwpaley dwpaley commented Feb 16, 2022

This will close dials/dials#2011. Added a test to catch the regression described there, but please see if there's anything else you'd like to test about ImageSequences with offset -1 (i.e. anything starting from image 0?)

@graeme-winter who shall I ask to review?

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #485 (4f6fbf6) into main (2010053) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head 4f6fbf6 differs from pull request most recent head e2f761a. Consider uploading reports for the commit e2f761a to get more accurate results

@@            Coverage Diff             @@
##             main     #485      +/-   ##
==========================================
+ Coverage   40.59%   40.63%   +0.03%     
==========================================
  Files         177      177              
  Lines       15549    15550       +1     
  Branches     2776     2776              
==========================================
+ Hits         6312     6318       +6     
+ Misses       8697     8691       -6     
- Partials      540      541       +1     

@dwpaley
Copy link
Author

dwpaley commented Feb 16, 2022

If there are no objections, I'll merge as soon as tests pass since it seems at least a couple users are already having problems with this bug.

@dagewa
Copy link
Member

dagewa commented Feb 16, 2022

Sounds good to me, as all tests pass - and the new test is very welcome 👍

@dwpaley dwpaley merged commit 67aab21 into main Feb 16, 2022
@dwpaley dwpaley deleted the imagesequence_from_zero branch February 16, 2022 21:14
ndevenish pushed a commit that referenced this pull request Jul 26, 2023
Without this, slices sometimes needed to be indexed by their original
image index, even inside the slice.

The previous workaround in 67aab2 (#485) for negative offset was
reacting to the erroneous behaviour introduced by including batch
offsets in imagesequence slicing.
toastisme pushed a commit to toastisme/dxtbx that referenced this pull request Jul 18, 2024
Without this, slices sometimes needed to be indexed by their original
image index, even inside the slice.

The previous workaround in 67aab2 (cctbx#485) for negative offset was
reacting to the erroneous behaviour introduced by including batch
offsets in imagesequence slicing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants