-
Notifications
You must be signed in to change notification settings - Fork 0
Ticket42 sum detect monitor spectra #66
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
Conversation
esmith1729
commented
Nov 19, 2024
- Sum detector/monitor spectra with tof/wavelength bounds #42
…default monitor and detector summers to sum_spectra
…f bound and wavelength bounding of spectra
…ter for tof_bounded_spectra and wavelength_bounded_spectra
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.
Implementation & tests look good, mostly just some docs/clarity nitpicking.
Apologies for the number of comments - most of them are extremely minor - just worth trying to be precise I think.
Can you also merge in main
as there's a merge conflict
doc/devices/dae.md
Outdated
{py:obj}`ibex_bluesky_core.devices.simpledae.reducers.tof_bounded_spectra` | ||
|
||
|
||
Monitor Normalizers, which have both a monitor as well as detector, can be passed a summing function for each of these components independently, e.g. the detector can use time of flight while the monitor uses wavelength. Here is an example with wavelength bounding used to sum the monitor component, and time of flight bounding for the detector summing spectra: |
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.
should: somewhere we need to explain that while you can use different flight path lengths for detectors & monitors, there is an assumption that the flight path length is the same for all detector pixels. This will usually be true for the kinds of detector pixels that are regularly scanned over.
(We could in future allow a length-per-pixel, but not as part of this ticket)
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.
I'm not quite sure where is the best place to put this, or how best to explain it in a way the user would understand. I can give it a shot though.
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.
How about something like:
tof_bounded_spectra
assumes that all pixels being summed share the same flight-path length. Where two separate instances oftof_bounded_spectra
are used, such as inDetectorMonitorNormaliser
, these may have different flight path lengths from each other.
In either the docstring of the method, or the top level docs - whichever you choose.
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.
Sounds good, thank you very much!
…h bounds not equal to 2.
add local variable bounds_value to compare number of bounds, and rephrasing some API reference explanation.
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.
All acceptance criteria met and unit tests pass- looks good!