To create a dictionary filled with the results of a fastscananalysis as used by mvsa.py, see 6.5.5.
p09/door/haso107tk.01 [3]: %createSaDct? Docstring: Syntax: createSaDct <mode> -> <result> fill a dictionary, saDct, with the results from a fastscananalysis as used by mvsa.py the dictionary is stored in the MacroServer environment saDct -> the dictionary containing the results saDct[ 'fileName'] : using ScanDir, ScanFIle, ScanID saDct[ 'signalCounter'] : the signal counter saDct[ 'flagDataFromMonitor'] : if False, a .fio file hase been read saDct[ 'scanInfo'] : {'intervals': 49, 'motors': [{'name': 'exp_dmy01', 'start': 0.0, 'stop': 10.0, 'targetPos': 5.1020408163299997}], 'sampleTime': 0.1, 'serialno': 5704, 'title': 'ascan exp_dmy01 0.0 10.0 49 0.1'} saDct[ 'message'] : 'success' or an error saDct[ 'dataX'] : saDct[ 'dataY'] : saDct[ 'npSig'] : points in the signal no. of pts with y >= 1/3*( yMax - yMin) + yMin (peak, dip, step, slit) saDct[ 'npTotal'] : saDct[ 'mode'] : peak, cms, cen, etc. saDct[ 'xpos'] : xpos depends on mode saDct[ 'xpeak'] : xpeak saDct[ 'xcms'] : cms saDct[ 'xcen'] : center ScanDir, ScanFile, ScanID -> file name ScanHistory -> motor name and scan type, supported: ascan, a2scan, a3scan, dscan, d2scan, d3scan, hscan, kscan, lscan, hklscan SignalCounter -> counter name Parameters: mode : (String) Options: 'peak','cms','cen', 'dip','dipm','dipc', 'slit', 'slitm', 'slitc', 'step', 'stepm', 'stepc', 'stepssa' and '*ssa' in general Result: result : (String) 'status=False' or 'status=True,mot1=12,...'
To access the dictionary, e.g.:
p09/door/haso107tk.01 [1]: import HasyUtils p09/door/haso107tk.01 [2]: saDct = HasyUtils.getEnv( 'saDct')