We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lsf_rotate
1 parent 9f4e7c9 commit 4cd6c16Copy full SHA for 4cd6c16
src/lsf_rotate.jl
@@ -7,7 +7,7 @@ function lsf_rotate(Δ::T, vsini::T, ɛ::T) where {T<:AbstractFloat}
7
e1 = 2*(1 - ɛ)
8
e2 = pi*ɛ/2
9
e3 = pi*(1 - ɛ/3)
10
- x1 = abs.(1 .- (vel ./ vsini) .^ 2)
+ x1 = abs.(T(1) .- (vel ./ vsini) .^ T(2)) # Use T(...) to work around https://github.com/JuliaLang/julia/issues/51129
11
return vel, (e1 .* sqrt.(x1) .+ e2 .* x1) ./ e3
12
end
13
0 commit comments