Skip to content
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 ROI histograms #303

Merged
merged 12 commits into from
Feb 12, 2025
Merged

Add ROI histograms #303

merged 12 commits into from
Feb 12, 2025

Conversation

SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Jan 31, 2025

This change is mainly about the detector_data service, even though I have made a small dashboard addition so it can be tested/demonstrated. This is not meant to be usable, in particular there will/should be per-view controls. The config mechanism will also need updating for that.

Depends on a release of scipp/essreduce#173.

image

Fixes #300 (in first approximation).

Copy link
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must say I didn't fully understand all the changes, but I didn't see anything that looked bad/wrong ;-)

content.data = sc.ones(
dims=content.dims, shape=content.shape, dtype='float32', unit='counts'
)
data.data = sc.bins(**constituents)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the _bins_no_validate be used here for extra performance gain?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks, fixed now!

@SimonHeybrock SimonHeybrock merged commit cdbd14c into main Feb 12, 2025
4 checks passed
@SimonHeybrock SimonHeybrock deleted the roi-histogram branch February 12, 2025 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ROI selection service
2 participants