-
Notifications
You must be signed in to change notification settings - Fork 13
Fix off-by-one Error and related WCS changes #276
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
Merged
Merged
Changes from 36 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
a52b9fc
Fix wcs issues causing off-by-one error
teutoburg 471ad10
Attempt to fix now-broken tests...
teutoburg e2ff4fa
Correct header in mock HDUs
teutoburg aca8aaa
attempt to fix broken stuff
teutoburg dadfd28
Take WCS unit from header
teutoburg f094c03
Fix off-center CRPIX
teutoburg d44a7c8
formatting
teutoburg ed12746
workaround for cube footprint
teutoburg 74522ad
Correct shift of CRPIX when rescaling.
teutoburg af2f0db
Fix wrong CRPIX in mock PSF
teutoburg f37b992
Fix various mock WCSs
teutoburg 24fa2b1
xfailing this because I don't understand how it's supposed to pass
teutoburg 5834bef
Prepare to add more strict test (which would now fail 1/4 cases)
teutoburg f9da90c
comments and formatting
teutoburg 0b0def4
Use approx to handle float-point madness
teutoburg 087500b
This test previously assumed that the point source will stay on on ce…
teutoburg 48691da
The numbers used previously make little sense, see comments.
teutoburg faa754f
too many dots in import
teutoburg d3d05ed
Always use deg for FOV header
teutoburg e821957
Hinder heinous header horsing
teutoburg 7224d17
remove temporary "fixes"
teutoburg e07be70
Make sure header dimensions are correct
teutoburg 047a0b8
minor fixes
teutoburg bb58de9
Fix test, add one
teutoburg 752c9bb
Remove commented-out code, fix some comments
teutoburg 5bd8580
Improve footprint functions, add table footprint function.
teutoburg 38904ff
Adapt to new calc_footprint return format.
teutoburg bd9fa47
Simplify quantify from table and unit from table functions
teutoburg 5c007db
Improve implementation of image_plane_utils, adjust tests accordingly
teutoburg ee53e29
Use zip...
teutoburg 44d58ac
Merge branch 'dev_master' into fh/off-by-one
teutoburg 196297e
Fix Warnings
teutoburg 7b0bd6b
just because it says DeprecationWarning, doesn't mean it is one...
teutoburg 07f2a1b
Fix uniform illumination test
teutoburg 1b21cdc
Revert changes to extract_area_from_table and change mock data instead
hugobuddel a54514e
Merge pull request #277 from AstarVienna/hb/extractareafromtable
teutoburg 80af42a
Fix type of naxis assignment
teutoburg b5cc394
Attempt to fix off-by-0.5
teutoburg fa8a149
remove offset, this caused more problems than it solved
teutoburg 8089068
Make better use of new footprint return format
teutoburg 1274338
Split header creation function
teutoburg 9fda39f
minor fixes
teutoburg 3469ca5
more logging
teutoburg 782f7c7
another off-by-something
teutoburg e8dd0ee
log warning instead of error, to pass CI
teutoburg 54a5c4b
Better rounding, some comments
teutoburg 2b6a58e
Add fallback option to rescale_imagehdu to pass notebooks.
teutoburg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice approach, I like it. Maybe something like this is simpler? Untested, and the current code works, so we should just keep yours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If e.g.
key="D", but no detector wcs exists in the header, I guess we don't want to return the sky wcs as a detector wcs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning a sky wcs when a detector wcs is expected would be a valid concern.
I think sets aren't ordered in Python, only dictionaries, so the
pop()could return either" "or"S", so the current code seems under-defined. In fact, in my tests,sky_alias.pop()will return"S"if possible (independent of the order in which it is defined), so" "is never tried ifkey="D".