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

DM-31491: Add default types to allow fakes propagation #576

Merged
merged 2 commits into from Oct 27, 2021

Conversation

sr525
Copy link
Contributor

@sr525 sr525 commented Sep 23, 2021

No description provided.

@sr525 sr525 force-pushed the tickets/DM-31491 branch 3 times, most recently from f2cab35 to 147febd Compare September 23, 2021 16:36
Comment on lines +86 to +90
# This check is here because sometimes the WCS
# is multivalued and objects that should not be
# were being included.
gsPixScale = np.sqrt(gsWCS.pixelArea())
if gsPixScale < pixScale/2 or gsPixScale > pixScale*2:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is a gsPixScale offset of a factor of 2 sufficient to always capture this multivalued WCS issue, or will you still expect some level of failure? If sufficient, then that's fine. If it might continue to be an issue however, then perhaps this factor should be configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was sufficient in testing, I think if it turns out not to be we need to do something more intelligent than this check. In which case I would like it to crash so we can figure out a better solution.

@sr525 sr525 force-pushed the tickets/DM-31491 branch 3 times, most recently from f6225f8 to 5b70205 Compare October 22, 2021 12:57
@sr525 sr525 merged commit e542799 into master Oct 27, 2021
@sr525 sr525 deleted the tickets/DM-31491 branch October 27, 2021 02:41
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