Skip to content

Fix monitor histogram output losing user-configured edge unit#868

Merged
SimonHeybrock merged 1 commit into
mainfrom
fix-monitor-histogram-edge-unit
Apr 14, 2026
Merged

Fix monitor histogram output losing user-configured edge unit#868
SimonHeybrock merged 1 commit into
mainfrom
fix-monitor-histogram-edge-unit

Conversation

@SimonHeybrock
Copy link
Copy Markdown
Member

@SimonHeybrock SimonHeybrock commented Apr 14, 2026

Summary

  • c319ffc fixed wavelength-mode UnitError by dynamically inferring the event coordinate unit, but forgot to convert the histogram coordinate back to the user's requested unit — output was always in the event unit (e.g., nanoseconds)
  • The detector view already handled this correctly; apply the same pattern to the monitor workflow

🤖 Generated with Claude Code

c319ffc fixed a UnitError in wavelength mode by dynamically inferring
the event coordinate unit instead of hardcoding 'ns'. However, it forgot
to convert the histogram coordinate back to the user's requested unit,
so the output always had the event coordinate unit (e.g., nanoseconds).

The detector view already handled this correctly by reassigning the
original bins. Apply the equivalent fix to the monitor workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SimonHeybrock
Copy link
Copy Markdown
Member Author

LGTM

@SimonHeybrock SimonHeybrock merged commit 211465f into main Apr 14, 2026
4 checks passed
@SimonHeybrock SimonHeybrock deleted the fix-monitor-histogram-edge-unit branch April 14, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant