Skip to content

Commit

Permalink
Calibrate with mu rather then centroid
Browse files Browse the repository at this point in the history
  • Loading branch information
theHenks committed Nov 5, 2024
1 parent d13bcd6 commit fe962f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aoe_filter_optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function prepare_sep_peakhist(e::Vector{<:T}; sep::Unitful.Energy{<:Real}=2103.5
# initial fit for calibration and parameter extraction
result, report = fit_single_peak_th228(sephist, sepstats,; uncertainty=uncertainty, fit_func=fit_func)
# get calibration estimate from peak postion
result = merge(result, (m_calib = sep / result.centroid, ))
result = merge(result, (m_calib = sep / result.μ, ))
return result, report
end

Expand Down

0 comments on commit fe962f7

Please sign in to comment.