From 03ac04ab0520583de18b44770f34c840fca9fee2 Mon Sep 17 00:00:00 2001 From: jochenstahn Date: Fri, 6 Dec 2024 14:59:18 +0100 Subject: [PATCH] removed control output --- libeos/file_reader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libeos/file_reader.py b/libeos/file_reader.py index 9d36fb9..6ab0aa9 100644 --- a/libeos/file_reader.py +++ b/libeos/file_reader.py @@ -87,7 +87,6 @@ class AmorData: #self.monitor = _monitor self.monitorPerPulse = _monitorPerPulse self.pulseTimeS = _pulseTimeS - print(f' number of pulses: {np.shape(self.pulseTimeS)[0]}') #------------------------------------------------------------------------------------------------- #def path_generator(self, number): @@ -196,7 +195,7 @@ class AmorData: self.extract_walltime(norm) # following lines: debugging output to trace the time-offset of proton current and neutron pulses - if self.config.monitorType == 'p': + if self.config.monitorType == 'x': cpp, t_bins = np.histogram(self.wallTime_e, self.pulseTimeS) np.savetxt('tme.hst', np.vstack((self.pulseTimeS[:-1], cpp, self.monitorPerPulse[:-1])).T) @@ -239,7 +238,6 @@ class AmorData: except AttributeError: # first file nextPulseTime = pulseTime[0] % np.int64(self.tau*2e9) - print(f' start time: {nextPulseTime/1e9}') for tt in pulseTime: while tt - nextPulseTime > self.tau*1e9: @@ -247,7 +245,6 @@ class AmorData: nextPulseTime += chopperPeriod self.pulseTimeS = np.append(self.pulseTimeS, tt) nextPulseTime = self.pulseTimeS[-1] + chopperPeriod - print(f' number of pulses: {np.shape(self.pulseTimeS)[0]}') def get_current_per_pulse(self, pulseTimeS, currentTimeS, currents): # add currents for early pulses and current time value after last pulse (j+1)