Skip to content

Commit

Permalink
add no timecorr mode, bugfix for dt corr plot
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed May 24, 2024
1 parent b162031 commit c3afc87
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pygama/pargen/AoE_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,15 @@ def time_correction(
)
}

elif mode == "none":
time_dict = {
time: mean
for time, mean in zip(
np.array(self.timecorr_df.index),
np.nanmean(self.timecorr_df["mean"]),
)
}

else:
raise ValueError("unknown mode")

Expand Down Expand Up @@ -2005,7 +2014,7 @@ def drifttime_corr_plot(

hist, bins, var = pgh.get_hist(
final_df[aoe_class.dt_param],
dx=10,
dx=32,
range=(
np.nanmin(final_df[aoe_class.dt_param]),
np.nanmax(final_df[aoe_class.dt_param]),
Expand Down

0 comments on commit c3afc87

Please sign in to comment.