Page History
...
Make sure to adapt the alias to the detectors names in your smalldata h5 file. The object rr
(created from rr = tables.File(f).root
) in the workspace allows for easy tab-exploration of the content of the h5 file to figure out variable names.
Example from trXRD.ipynb
While most value often remain the same for the entire experiment, the scanvar should be updated to match the axis being scanned for each run (delay, energy, azimuth, ...).
Code Block | ||||
---|---|---|---|---|
| ||||
# helper dict to find data in file dataDict = { 'scanvar': 'enc/lasDelay', 'i0': 'ipm2/sum', 'roi': 'jungfrau1M/ROI_0_area', 'xon': 'lightStatus/xray', 'lon': 'lightStatus/laser', 'tt_corr': 'tt/ttCorr', 'tt_fwhm': 'tt/FLTPOSFWHM', 'tt_amp': 'tt/AMPL' } filters = {} filters['i0'] = [200,10000] filters['tt_amp'] = [0.02,0.2] filters['tt_fwhm'] = [50,240] damage = [dataDict['roi'].split('/')[0], dataDict['i0'].split('/')[0]] print('Filter selection:') for key,value in filters.items(): print('\t{} : {}'.format(key, value)) hist_bins = {key: 35 for key in filters.keys()} |
...
Overview
Content Tools