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

Merge branch 'tim_fix' into 'master'

Tim fix

See merge request SCS/ToolBox!10
parents 3683e3e9 5b1708a9
No related branches found
No related tags found
1 merge request!10Tim fix
......@@ -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
......
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