From eb8f611c047718af6ee09b0be7a9e185f78d6d6a Mon Sep 17 00:00:00 2001 From: Lanqing Yuan Date: Mon, 26 Feb 2024 11:37:51 -0600 Subject: [PATCH] implemented dacheng pr --- saltax/plugins/s_peaklets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saltax/plugins/s_peaklets.py b/saltax/plugins/s_peaklets.py index f4c9bed..886428d 100644 --- a/saltax/plugins/s_peaklets.py +++ b/saltax/plugins/s_peaklets.py @@ -330,7 +330,7 @@ def compute(self, records, start, end): # possibly due to its currently primitive scheduling. hitlet_time_shift = (hitlets['left'] - hitlets['left_integration']) * hitlets['dt'] hit_max_times = ( - hitlets['time'] + hitlet_time_shift + hitlets_time + hitlet_time_shift ) # add time shift again to get correct maximum hit_max_times += hitlets['dt'] * hit_max_sample(records, hitlets)