Skip to content

Commit

Permalink
Merge pull request #114 from legend-exp/patch_flt-opt
Browse files Browse the repository at this point in the history
Remove `ft < rt` condition for filter optimization
  • Loading branch information
fhagemann authored Feb 13, 2025
2 parents 74f700a + e08edf1 commit 497dadb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/filter_optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ function _fit_fwhm_ft(e_grid::Matrix, e_grid_ft::StepRangeLen, rt::Unitful.RealO
Threads.@threads for f in eachindex(e_grid_ft)
# get ft
ft = e_grid_ft[f]
# if ft > rt filter doesn't make sense, continue
if ft > rt
@debug "FT $ft bigger than RT $rt, skipping"
continue
end

# get e values for this ft
e_ft = Array{Float64}(flatview(e_grid)[f, :])
e_ft = e_ft[isfinite.(e_ft)]
Expand Down Expand Up @@ -245,11 +241,6 @@ function _fit_fwhm_ft_ctc(e_grid::Matrix, e_grid_ft::StepRangeLen, qdrift::Vecto
# get ft
ft = e_grid_ft[f]

# if ft > rt filter doesn't make sense, continue
if ft > rt
@debug "FT $ft bigger than RT $rt, skipping"
continue
end
# get e values for this ft
e_ft = Array{Float64}(flatview(e_grid)[f, :])
e_isfinite_cut = isfinite.(e_ft) .&& isfinite.(qdrift) .&& e_ft .> 0 .&& qdrift .> 0
Expand Down

0 comments on commit 497dadb

Please sign in to comment.