usnistgov / PyHyperScattering

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

bug: `PFGeneralIntegrator` does not load energy from a template xarray #125

Closed pbeaucage closed 3 months ago

pbeaucage commented 3 months ago

PFGeneralIntegrator, when set up with a template xarray like so:

''' integ = PyHyperScattering.integrate.PFGeneralIntegrator(geomethod='template_xr', template_xr=data.isel({'sam_x':0,'sam_y':0}), integration_method='csr', use_chunked_processing=False,) '''

will not pick up the energy from the template and instead use the default of 2 keV. Since energy is generally in the template, this should be populated.