Skip to content
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

remove old/commented code #92

Open
hematthi opened this issue Jun 18, 2022 · 0 comments
Open

remove old/commented code #92

hematthi opened this issue Jun 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@hematthi
Copy link
Collaborator

function integrate(m::TopHatCCFMask, v_lo::Real,v_hi::Real)
#= if ! (-m.half_width*1.01 <= v_lo <= m.half_width*1.01) || !(-m.half_width*1.01 <= v_hi <= m.half_width*1.01)
global num_error_msgs += 1
if num_error_msgs < 100
println("# v_lo = ", v_lo, " v_hi = ", v_hi, " half_width = ", m.half_width)
# @assert -m.half_width <= v_hi <= m.half_width
# @assert -m.half_width <= v_lo <= m.half_width
end
end
=#
#quadgk(m, v_lo, v_hi)[1]
0.5*(v_hi-v_lo)/m.half_width
#0.5*(v_hi-v_lo)/m.half_width * (1+m.half_width/speed_of_light_mps)/(1+(m.half_width/speed_of_light_mps)^2/2)
end

@hematthi hematthi added the enhancement New feature or request label Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant