Skip to content

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

Merged
merged 27 commits into from
Jan 14, 2025

Conversation

esmith1729
Copy link
Contributor

@esmith1729 esmith1729 linked an issue Nov 19, 2024 that may be closed by this pull request
5 tasks
Copy link
Member

@Tom-Willemsen Tom-Willemsen left a 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

{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:
Copy link
Member

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)

Copy link
Contributor Author

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.

Copy link
Member

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 of tof_bounded_spectra are used, such as in DetectorMonitorNormaliser, 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.

Copy link
Contributor Author

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!

Copy link
Contributor

@jackbdoughty jackbdoughty left a 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!

@jackbdoughty jackbdoughty merged commit 419f328 into main Jan 14, 2025
15 checks passed
@jackbdoughty jackbdoughty deleted the ticket42_sum_detect_monitor_spectra branch January 14, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sum detector/monitor spectra with tof/wavelength bounds
3 participants