Skip to content

263 remember last det#278

Merged
rodolakis merged 2 commits into
mainfrom
263-remember-last-det
Jan 13, 2026
Merged

263 remember last det#278
rodolakis merged 2 commits into
mainfrom
263-remember-last-det

Conversation

@rodolakis

@rodolakis rodolakis commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

- Store last selected fields (X and Y) per stream in BRC_MVC
- Remember last selected stream name
- Pass preferred stream and fields to SelectFieldsWidget
- Apply preferred selections when available, fall back to defaults
- For X axis: fall back to default X only if preferred X doesn't exist in new scan
- For Y detectors: fall back to default Y only if none of preferred Y detectors exist
- Prevents default detectors from appearing alongside preferred selections
Extend try/except block to wrap numpy.asarray() call where shape mismatch
errors occur during dask array computation. Previously, errors were only
caught during .read() but shape mismatches happen during array conversion,
causing crashes when displaying stream data for active runs.
@rodolakis rodolakis linked an issue Jan 12, 2026 that may be closed by this pull request
@rodolakis rodolakis requested a review from prjemian January 12, 2026 22:38
@rodolakis rodolakis self-assigned this Jan 12, 2026
@rodolakis rodolakis added bug Something isn't working enhancement New feature or request labels Jan 12, 2026
@rodolakis rodolakis added this to the v1.0 milestone Jan 12, 2026

@prjemian prjemian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works, as described.

@rodolakis rodolakis merged commit 06c1c74 into main Jan 13, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Review to Done in GemViz initial release Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

2 participants