-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add rebinning to a constant resolution for spectra and extinction data #100
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #100 +/- ##
==========================================
+ Coverage 46.52% 47.56% +1.03%
==========================================
Files 19 19
Lines 2577 2670 +93
==========================================
+ Hits 1199 1270 +71
- Misses 1378 1400 +22 ☔ View full report in Codecov by Sentry. |
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.
These changes look great!
I mostly indicated typos and have a few minor comments.
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.
Thanks for fixing/replying to my comments! Here are a few more minor things.
(For some reason, some comments are part of this review, and others are individual comments, not sure how that happened, but I hope you will find everything.)
Ok to merge now? |
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.
Just two more typos...
measure_extinction/stardata.py
Outdated
@@ -816,7 +816,7 @@ def rebin_constres(self, waverange, resolution): | |||
|
|||
Parameters | |||
---------- | |||
waverange : [float, float] | |||
waverange : 2 element array of atropy Quantities |
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.
waverange : 2 element array of atropy Quantities | |
waverange : 2 element array of Astropy Quantities |
Adds option to rebin to a specified constant spectral resolution for spectra and spectral extinction curves. Documentation for the basic classes and capabilities including the rebinning included.
As part of the testing of the rebinning, some changes to the plotting scripts were made. One change was to remove the forcing of all filenames to be lower case allowing for a wider range of filenames to be used. Another was to switch from using the filenames to using the saved names of the reddened and comparison stars in the extinction FITS files.
Finally, the wavenum capability added previously in PR #81 did not fully work with the plotting scripts. Updates were made to more fully support plotting versus 1/lambda. The missing plotting capabilities were revealed during the rebin testing.
Fixes a few minor bugs found during this work.