Skip to content

Conversation

@SimonHeybrock
Copy link
Member

@SimonHeybrock SimonHeybrock commented Jan 8, 2026

Summary

  • Extend logical view transform signature from (da) -> da to (da, source_name) -> da, allowing transforms to handle multiple detector banks with different parameters
  • Add wire view for LOKI that folds and sums over 'straw' and 'pixel' dimensions, producing a 2D (layer x tube) output
  • Fix axis sharing in hv.Layout plots to prevent compressed/unreadable displays when showing multiple detector banks

Plotting all 9 banks this looks like this:

image

Test plan

  • All existing tests pass (1903 passed)
  • Detector handler tests updated to use new signature

🤖 Generated with Claude Code

SimonHeybrock and others added 2 commits January 8, 2026 10:29
Change the logical view transform signature from (da) -> da to
(da, source_name) -> da. This allows a single transform function to
handle multiple detector banks with different parameters (e.g., different
fold sizes based on the detector bank).

Add wire view for LOKI that sums over 'straw' and 'pixel' dimensions,
resulting in a 2D (layer x tube) output. This is appropriate because all
7 straws share a single electrical readout. The view uses
DETECTOR_BANK_SIZES from ess.loki.workflow which has pixel=-1 for
auto-computation.

Also update DREAM views to use source_name for lookup in DETECTOR_BANK_SIZES.

Prompt: We now need to add a wire-view for LOKI. We should use
ess.loki.workflow.DETECTOR_BANK_SIZES and support loki_detector_{i} for
i=0...8; As all 7 straws have a single readout (same electrical component),
I think we should sum the 'straw' as well as the 'pixel' dimension,
resulting in a 2d output.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This is typically yielding unwanted and even unreadable results
(large empty padding, compressed color scales).
@github-project-automation github-project-automation bot moved this to In progress in Development Board Jan 8, 2026
@SimonHeybrock SimonHeybrock moved this from In progress to Selected in Development Board Jan 8, 2026
@SimonHeybrock SimonHeybrock merged commit bf64b7a into main Jan 9, 2026
4 checks passed
@SimonHeybrock SimonHeybrock deleted the loki-wire-view branch January 9, 2026 08:25
@github-project-automation github-project-automation bot moved this from Selected to Done in Development Board Jan 9, 2026
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.

3 participants