New features:
fill a dictionary with the results from a fastscananalysis as used by mvsa.py
p09/door/haso107tk.01 [12]: ascan exp_dmy01 0 100 50 0.1
p09/door/haso107tk.01 [13]: %createSaDct peak
Result [13]: 'status=True'
mode : (String) Options: 'peak','cms','cen', 'dip','dipm','dipc', 'slit', 'slitm', 'slitc',
'step','stepm', 'stepc', 'stepssa' and '*ssa' in general
p09/door/haso107tk.01 [14]: saDct = HasyUtils.getEnv( "saDct")
p09/door/haso107tk.01 [15]: saDct
Result [15]:
{'fileName': '/home/kracht/Misc/IVP/temp/tst_05975.fio',
'flagDataFromMonitor': True,
'message': 'success',
'mode': 'peak',
'motorArr': [{'name': 'exp_dmy01',
'start': 0.0,
'stop': 100.0,
'targetPos': 50.0}],
'npSig': 10,
'npTotal': 51,
'scanInfo': {'intervals': 50,
'motors': [{'name': 'exp_dmy01',
'start': 0.0,
'stop': 100.0,
'targetPos': 50.0}],
'sampleTime': 0.1,
'serialno': 5975,
'title': 'ascan exp_dmy01 0.0 100.0 50 0.1'},
'signalCounter': 'sig_gen',
'xData': [0.0,
...,
100.0],
'xcen': 49.66666666674073,
'xcms': 49.66666666663957,
'xpeak': 50.0,
'xpos': 50.0,
'yData': [4.0365669630680525e-08,
...
2.126793362191566e-08],
'yMax': 799.1460838076083,
'yMin': 2.126793362191566e-08}
npSig:
no. of pts with y >= 1/3*( yMax - yMin) + yMin (peak, dip, step, slit)
ssa which should be more robust.
Please restart the MacroServer to load this new macro.