-
Notifications
You must be signed in to change notification settings - Fork 65
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
Handling larger range for BUNIT conversions #700
Merged
keflavich
merged 30 commits into
radio-astro-tools:master
from
e-koch:jybeam_beam_change_unit_conversion
May 13, 2021
Merged
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cf2e3f7
Add beam equiv for current and target unit
e-koch e1c1108
Add Jy/beam -> Jy/sr -> bright. temp. cube conversions
e-koch 67badb8
Add conversions to Jy/pix
e-koch 972b9c1
Start of test for full range of cube unit converions
e-koch 70767a6
Fix extra arg causing failures
e-koch a12bd02
Test round trip for comparison between all BUNIT sets
e-koch 83e7e30
Add round trip manual equivalency checks
e-koch 72f7fd7
Fix the Jy/pix converion definitions
e-koch 37fc601
Add full units testing including round trips
e-koch b922bfb
Abstract out the equivalency bunit checks to a separate function
e-koch f0f12c1
Also include a mJy/mK unit test
e-koch 1c5c68a
Include check for already equivalent units
e-koch f5a98ad
Add docstring to bunit convertsions
e-koch 751d5eb
Initial LDO conversions for bunits and 2D projections
e-koch 5cd5771
Return factor instead of equivalencies
e-koch 9a158e9
Bunit conversions working for all LDOs w/o multiple beams
e-koch 8115cbd
Add 2D and 1D round-trip bunit conversion tests
e-koch 0019125
Rework conversion function for varying res objects
e-koch 3c1cafb
Fixes for equivalencies with changing beam size
e-koch 2d2b03b
Remove manually providing beam equivs in test. This should now be han…
e-koch 88eadb6
Add round trip unit conversion test for varying res cubes
e-koch 1260d4c
Add pixels_per_beam for multi beam objects
e-koch f934a90
Add a multibeam Jy/pix roundtrip test
e-koch 0fa8e0f
Handle passing frequencies for 1D object unit conversions
e-koch aa19665
Add a multibeam 1D spec unit conversion roundtrip test
e-koch e4afcd9
Cleanup old code
e-koch 329b2c6
Return an array of factors
e-koch d6d8d58
Break down the steps in the bunit conversion and add to the docstring
e-koch 30de78e
Apply suggestions from code review
e-koch b0936d8
Boost the radio-beam version to v0.3.3; update the note in the bunit …
e-koch 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 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 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 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 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.
WHOA, I didn't know
u.one
isu.dimensionless
! neat!