Skip to content

Commit b9e6491

Browse files
committed
rm calc_doppler_factor(rv_kmps=X)
1 parent 2f695d8 commit b9e6491

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/util/physics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ calc_doppler_factor(rv::Real, v_perp::Real) = (one(rv) + rv/speed_of_light_mps)/
4343

4444
calc_doppler_factor(;z::Real) = one(z) + z
4545

46-
calc_doppler_factor(;rv_kmps::Real) = one(rv_kmps) + rv_kmps*1000.0/speed_of_light_mps
46+
# Evidently, can't have different versions of function that only differ by named argument
47+
#calc_doppler_factor(;rv_kmps::Real) = one(rv_kmps) + rv_kmps*1000.0/speed_of_light_mps
4748

4849

4950
"""

src/util/spectra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function apply_doppler_boost!(spectra::AS, dict::AbstractDict ) where { AS<:Abst
7272
have_issued_multiple_ssb_warning = true
7373
end
7474
elseif haskey(dict,:ssb_rv_kmps)
75-
doppler_factor *= calc_doppler_factor(rv_kmps=dict[:ssb_rv_kmps])
75+
doppler_factor *= calc_doppler_factor(dict[:ssb_rv_kmps]*1000.0)
7676
end
7777
#=
7878
# Now plan to apply correction at end, rather than to wavelength

0 commit comments

Comments
 (0)