-
Notifications
You must be signed in to change notification settings - Fork 2
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
compatiblity updates with HARPS and HARPS-N spectra #12
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12 +/- ##
==========================================
- Coverage 31.00% 30.63% -0.38%
==========================================
Files 19 19
Lines 987 999 +12
==========================================
Hits 306 306
- Misses 681 693 +12
Continue to review full report at Codecov.
|
@@ -55,20 +55,23 @@ function apply_doppler_boost!(spectra::AS, dict::AbstractDict ) where { AS<:Abst | |||
doppler_factor *= calc_doppler_factor(dict[:drift_rv]) | |||
end | |||
=# | |||
if !haskey(dict,:ssb_rv) && !haskey(dict,:ssbz) && !have_issued_ssb_warning | |||
if !haskey(dict,:ssb_rv) && !haskey(dict,:ssbz) && !haskey(dict,:ssb_rv_kmps) && !have_issued_ssb_warning |
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 we're going to allow either of these, then let's add a check that both aren't set.
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.
I updated this so a warning is printed if both are set, so the user knows which is used by default.
@assert 1 <= min_pixel_in_order(inst) <= max_pixel_in_order(inst) <= size(λ,1) | ||
@assert 1 <= min_order(inst) <= max_order(inst) <= size(λ,2) | ||
@assert 1 <= size(λ,1) <= max_pixel_in_order(inst) | ||
@assert 1 <= size(λ,2) <= max_order(inst) | ||
Spectra2DBasic{eltype(λ),eltype(flux),eltype(var),typeof(λ),typeof(flux),typeof(var),typeof(inst)}(λ,flux,var,inst,metadata) |
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.
I agree max_... should be less than size... But why not leave the check for min... being bigger than 1 and less than max?
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.
can add separate line that min_order is between 1 and max_order
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 a few minor suggestions. Please let me know if it would be helpful to discuss any.
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
support for km/s RV shifts and a binary RV shift