Skip to content

Commit

Permalink
Merge pull request #584 from ggmarshall/main
Browse files Browse the repository at this point in the history
fix for bug in timecorr
  • Loading branch information
gipert authored May 26, 2024
2 parents 0714ada + ce01a7f commit 63dd3dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pygama/pargen/AoE_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,11 +1023,8 @@ 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"]),
)
time: np.nanmean(self.timecorr_df["mean"])
for time in np.array(self.timecorr_df.index)
}

else:
Expand Down

0 comments on commit 63dd3dc

Please sign in to comment.