Skip to content

[essreduce] DetectorExplorer for viewing and masking detector banks - #834

Open
nvaytet wants to merge 44 commits into
mainfrom
masking-diagnostics
Open

nvaytet wants to merge 44 commits into
mainfrom
masking-diagnostics

Conversation

@nvaytet

@nvaytet nvaytet commented Oct 26, 2026

Copy link
Copy Markdown
Member

We turn the LokiBankViewer into a more generic tool that could also be used for other instruments.

  • You can choose what dimensions are displayed using the show_dims arg.
  • You can add horizontal or vertical masks by activating a masking tool
  • zooming and panning are now available on the single bank panels
Screenshot_20261026_234436 Screenshot_20261026_234359

@nvaytet nvaytet added the essreduce Issues for essreduce. label Oct 26, 2026
@github-actions github-actions Bot added the esssans Issues for esssans. label Oct 26, 2026
@nvaytet
nvaytet marked this pull request as ready for review October 27, 2026 11:18
@nvaytet

nvaytet commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Presented to the instrument scientist and they approved the features.


self.bank_dim_sliders = {
key: [
DimSlider(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

other_dims is derived from the combined DataGroup dimensions, but this indexes every bank’s sizes with each of them. If banks have different dimension sets, construction raises KeyError (for example (layer, y, x) and (y, x) with show_dims=["y", "x"]). Could sliders be limited to dimensions present in each bank, or mismatched banks be rejected with a clear error?

da:
The DataArray to process.
"""
return da.assign_coords({dim: sc.arange(dim, sz) for dim, sz in da.sizes.items()})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This replaces coordinates for every dimension, including existing calibrated coordinates and units, so the plotted axes can become misleading. Could this add coordinates only for dimensions that lack them? If existing coordinates are preserved, mask-click positions will also need converting to pixel indices.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

essreduce Issues for essreduce. esssans Issues for esssans.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant