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

Use mask when making segmentation image. #1574

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

schlafly
Copy link
Collaborator

@schlafly schlafly commented Jan 8, 2025

This PR adds some DQ bits to the mask used for computing the segmentation image. Those bits were also used for the PSF fitting. Because the two masks did not agree, it was possible for sources to be created consisting of fully masked pixels, which would cause problems when fitting PSFs to the fully masked regions.

This PR as currently constructed is a bit of a hack.

  • the masks used in the segmentation image and the PSF fitting are not identical
  • we should compute those masks in only one place
  • I have added a hack to ignore the DEAD bit which is set for all pixels in the example files I am using.
    so we should not merge this PR. But I am hoping it is a useful starting point for discussions of the problem.

@schlafly
Copy link
Collaborator Author

schlafly commented Jan 8, 2025

@tddesjardins , can you see if this addresses your issue?

@schlafly
Copy link
Collaborator Author

schlafly commented Jan 8, 2025

@larrybradley , it would be nice to get your thoughts here.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.97%. Comparing base (f538ba0) to head (8fd9bec).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1574      +/-   ##
==========================================
+ Coverage   77.94%   77.97%   +0.03%     
==========================================
  Files         115      115              
  Lines        7622     7628       +6     
==========================================
+ Hits         5941     5948       +7     
+ Misses       1681     1680       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant