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

Cleaned up

parent 5f85ed01
No related branches found
No related tags found
1 merge request!53Tim
......@@ -609,12 +609,10 @@ def getTIMapd(data, mcp=1, use_apd=True, intstart=None, intstop=None,
'SCS_UTC1_ADQ/ADC/1', 'board1.apd.channel_0.upperLimit.value')[0].values
period = upperLimit - initialDelay #period of the apd in number of digitizer samples
idx /= int(period/440) #440 samples correspond to the separation between two pulses at 4.5 MHz
if len(idx)==1:
idx = idx[0].astype(int)
tim = apd.isel(apdId=idx)
return tim
idx = idx[0].astype(int)
return apd.isel(apdId=idx)
else:
apd = mcpPeaks(data, intstart, intstop, bkgstart, bkgstop, mcp=mcp,
return mcpPeaks(data, intstart, intstop, bkgstart, bkgstop, mcp=mcp,
t_offset=t_offset, npulses=maxpulses)
#2. case where the number of SASE 3 pulses varied during the run:
......
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