removed control output
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user