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 masking failure case when direct beam is exactly in the centre of a pixel #2329

Conversation

dagewa
Copy link
Member

@dagewa dagewa commented Jan 29, 2023

In that case, take the pixel position from the edge of the pixel rather than the centre.

failure case by shifting the s1 calculation to the edge of the
pixel instead.

Fixes #2322
@codecov
Copy link

codecov bot commented Jan 29, 2023

Codecov Report

Merging #2329 (02882ce) into main (53f64c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 02882ce differs from pull request most recent head 2f16292. Consider uploading reports for the commit 2f16292 to get more accurate results

@@           Coverage Diff           @@
##             main    #2329   +/-   ##
=======================================
  Coverage   80.72%   80.73%           
=======================================
  Files         589      589           
  Lines       68175    68192   +17     
  Branches     9145     9146    +1     
=======================================
+ Hits        55035    55054   +19     
+ Misses      11032    11028    -4     
- Partials     2108     2110    +2     

@dagewa dagewa requested a review from rjgildea January 30, 2023 14:50
@dagewa
Copy link
Member Author

dagewa commented Feb 2, 2023

@huwjenkins just wondering if this fix works for you?

@huwjenkins
Copy link
Contributor

Yep fix works for me. Thanks!

@dagewa dagewa merged commit fcf0309 into main Feb 21, 2023
@dagewa dagewa deleted the 2322-traceback-from-resolutionmaskgenerator-when-beam-centre-is-05-integral-pixel-values branch February 21, 2023 09:58
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.

Traceback from ResolutionMaskGenerator() when beam centre is 0.5 integral pixel values
3 participants