usnistgov / PyHyperScattering

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

SST1RSoXS Databroker: metadata change on energy #49

Closed pbeaucage closed 1 year ago

pbeaucage commented 1 year ago

en_energy_setpoint is not findable in current spiral scans. @EliotGann thinks this is a result of changes to the energy PV.

This causes loads to fail because it gets set to None and then calculation of wavelength from energy fails.

Two needs:

1) If energy is None, wavelength should just be None, not error. 2) SST1RSoXSDB should support loading from a backup source for metadata, e.g. en_monoen_readback, as a fallback.