usnistgov / PyHyperScattering

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

Fixes #27 by creating non-varying params in a more reasonable way #79

Closed pbeaucage closed 1 year ago

pbeaucage commented 1 year ago

27 was caused by a weird way that non-varying parameters were being turned into arrays, which would then become indexes/coordinates of the xarray. This one-line PR changes this to a much more Pythonic way that (bonus) also allows non-numeric types to be used as indexes.