Skip to content
Snippets Groups Projects
Commit 5b1708a9 authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

Fixed ntains definition in calibrateTIM()

parent 3683e3e9
No related branches found
No related tags found
No related merge requests found
...@@ -478,6 +478,7 @@ def calibrateTIM(data, rollingWindow=200, mcp=1, plot=False, use_apd=True, intst ...@@ -478,6 +478,7 @@ def calibrateTIM(data, rollingWindow=200, mcp=1, plot=False, use_apd=True, intst
start = 0 start = 0
stop = None stop = None
npulses = data['npulses_sase3'] npulses = data['npulses_sase3']
ntrains = npulses.shape[0]
if not np.all(npulses == npulses[0]): if not np.all(npulses == npulses[0]):
start = np.argmax(npulses.values) start = np.argmax(npulses.values)
stop = ntrains + np.argmax(npulses.values[::-1]) - 1 stop = ntrains + np.argmax(npulses.values[::-1]) - 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment