Skip to content

remove old/commented code #92

@hematthi

Description

@hematthi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions