fixed bug in chopperPhaseOffset use in combination with numba

This commit is contained in:
2024-05-15 16:41:06 +02:00
parent 140e3192dd
commit e05fc9e1e1

View File

@@ -227,7 +227,10 @@ class AmorData:
def merge_frames(self):
total_offset = self.tofCut+self.tau*self.config.chopperPhaseOffset/180.
if nb_helpers:
print(self.tau*self.config.chopperPhaseOffset/180)
#if nb_helpers:
if False:
# TODO: this routine seems to ignore total_offset
self.tof_e = nb_helpers.merge_frames(self.tof_e, self.tofCut, self.tau, total_offset)
else:
self.tof_e = np.remainder(self.tof_e-(self.tofCut-self.tau), self.tau)+total_offset # tof shifted to 1 frame