Skip to content
Snippets Groups Projects

Tim fix

Merged Laurent Mercadier requested to merge tim_fix into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -478,6 +478,7 @@ def calibrateTIM(data, rollingWindow=200, mcp=1, plot=False, use_apd=True, intst
start = 0
stop = None
npulses = data['npulses_sase3']
ntrains = npulses.shape[0]
if not np.all(npulses == npulses[0]):
start = np.argmax(npulses.values)
stop = ntrains + np.argmax(npulses.values[::-1]) - 1
Loading