usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
6 stars 8 forks source link

bug: `SST1RSoXSDB` scan hinting breaks if a scanned axis has negative value #121

Closed pbeaucage closed 3 months ago

pbeaucage commented 3 months ago

SST1 RSoXS data doesn't include any hinting of what motor was scanned in an explicit way, so SST1RSoXSDB does a rather convoluted inspection process to figure out what motors moved significantly (as judged by the reduced standard deviation of the scan) and make only those motors dimensions of the resulting xarray. If a motor had negative values, due to a simple math bug, the reduced standard deviation is negative and the dimension isn't automatically hinted.