usnistgov / PyHyperScattering

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

feature (and issue): support scan repeat loading without averaging #143

Open cbishop4 opened 1 month ago

cbishop4 commented 1 month ago

New functionality has been added to SST1 to allow for multiple exposures at each energy point during an RSoXS scan (i.e., instead of doing a 10-second exposure, you can do 5 2-second exposures.). Currently, PHS loads these scans by averaging them together, so you cannot access each individual pattern for statistics.

However, an issue has come into play once I started to do this (and should have opened an issue a couple months ago). To explain, we will adopt the working example of 5 2-second exposures. Once the code, as currently rewritten by me (but not publicly available in PHS) loads the 5 scans separately, those 5 scans do not add or average to the same I vs. q profile as the data initially loaded by the averaging method.

(Illustration of the mean(5 individual scans) =/= mean value from loading will be added soon)