-
Notifications
You must be signed in to change notification settings - Fork 2
Add Nexus workflow #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Nexus workflow #178
Conversation
ebe9c53 to
c006afa
Compare
src/ess/powder/conversion.py
Outdated
|
|
||
| def convert_monitor_to_wavelength( | ||
| monitor: MonitorTofData[RunType, MonitorType], | ||
| monitor: MonitorTofData[RunType, MonitorType], wavelength: WavelengthBins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| monitor: MonitorTofData[RunType, MonitorType], wavelength: WavelengthBins | |
| monitor: MonitorTofData[RunType, MonitorType], wavelength_bins: WavelengthBins |
src/ess/powder/conversion.py
Outdated
| Monitor data with time-of-flight coordinate. | ||
| wavelength: | ||
| Bins for the wavelength coordinate. This will be used ONLY if the monitor is | ||
| recorded in event mode. For histogrammed monitors no rebinning is performed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you histogram in this function? It seems surprising to me that the conversion function / provider does this. If this is because of the streaming workflow, could you move the histogramming into the accumulator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, good idea, we could make a custom accumulator that uses given wavelength bins. I'll try that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted this now.
Add WavelengthBins for event mode monitor binning Add docstring
This reverts commit 8790b37.
c006afa to
7ef1c5d
Compare
This adds a Nexus-file-based workflow. I needed this for being able to run stream processing for live data reduction.