-
Notifications
You must be signed in to change notification settings - Fork 1
Add use of WCS units to center and zoom functions #116
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 all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
4cabe3e
Notes
confluence 5199c1d
Merge remote-tracking branch 'origin/dev' into confluence/zoom_centre…
confluence c534dad
First pass of implementation. Needs testing.
confluence 6bd7dca
Some fixes and revisions; added functions for setting and clearing cu…
confluence ffe2837
improved property mocking
confluence f7d4a3b
some basic set_center tests
confluence a3dddfe
more consistent type coercion
confluence 562869d
fixed bug; completed set_center tests
confluence 0b47f84
More tests; fixed some bugs
confluence e1f5a39
Added and refined tests
confluence 9d0fd14
Added some session tests
confluence 4e970ff
The actual correct CoordinateSystem values
confluence 3bf31f0
Number format function; more tests
confluence d1ca655
Added validation tests and corrected logic for hms/dms with letter se…
confluence 9f55cca
Fixed some documentation issues
confluence 3ce9b20
bumped version
confluence c2ffbe9
Arguments to non-WCS zoom and center actions must be numbers
confluence a66d241
Fixed function names
confluence a795416
number_format should wrap return values in NumberFormat enums
confluence 2433ae2
Refactored internal implementation; fixed tests
confluence 74a1e86
add extra angular size unit aliases
confluence d03077f
Added support for sub-arcsecond units.
confluence 6c3a6e6
partial refactoring in preparation for range checks
confluence cc3d67f
Rename object tree
confluence cd337f4
rename angular size class
confluence ecb80ab
Renamed and refactored pixel value class; fixed tests
confluence 094df0d
Simplified AngularSize and WorldCoordinate usage
confluence c9d5da6
Refactored angular size class
confluence 195a6b4
Added support for unicode arcmin and arcsec symbols.
confluence fd7924d
Refactoring and test rewrites
confluence d7b56c2
Finish refactoring tests
confluence 0cb42a0
Restored previously removed support for empty H, M and/or S in sexage…
confluence db25e2e
Refactored angular size classes so that child classes work correctly …
confluence 8f240bf
Finished refactoring angular size tests
confluence 09b9ef9
Shift permitted range for set_center pixel values to allow for offset…
confluence 6bf54f8
Added hint to error message about missing WCS.
confluence 57988b2
Combined zoom_to_size_* functions into one function with axis parameter
confluence 7666c36
Remove range validation entirely for set_center with image coordinate…
confluence 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ __pycache__ | |
| build | ||
| carta.egg-info | ||
| .DS_Store | ||
| .coverage | ||
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.
shall we make it clear between native coordinate system (as defined in header) and "rendered" coordinate system?
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.
This is mostly unambiguous because it's a function on the session, not the image (and will probably soon move to a separate image viewer class). But we can explain this in more detail in the docstring.