Skip to content

Enable site diffraction viewer#2113

Merged
marcus-oscarsson merged 1 commit into
mxcube:developfrom
matyson:mb-enable-siteviewer
Jun 11, 2026
Merged

Enable site diffraction viewer#2113
marcus-oscarsson merged 1 commit into
mxcube:developfrom
matyson:mb-enable-siteviewer

Conversation

@matyson

@matyson matyson commented May 28, 2026

Copy link
Copy Markdown
Contributor

Enabling #1616 if accepted

  • Change hw.beamline.collect.adxv_notify call to .site_diffraction_viewer
  • prevent opening _blank page when braggy is not enabled

@matyson
matyson marked this pull request as draft May 28, 2026 14:36
if path:
fpath, img = HWR.beamline.detector.get_actual_file_path(path, img_num)
HWR.beamline.collect.adxv_notify(fpath, img)
HWR.beamline.collect.site_diffraction_viewer(fpath, img)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I mentioned in the other PR, I would just call it it display_image or similair. Then each site can decide what to do in their collect sub class, its understood that it can be site specific.

Comment thread ui/src/actions/general.js
@matyson
matyson force-pushed the mb-enable-siteviewer branch from 07fb81a to 2b694da Compare June 4, 2026 08:56
@matyson
matyson marked this pull request as ready for review June 4, 2026 09:05
- change hwo collect method call to site_diffraction_viewer
- prevent opening blank page when braggy is not enabled
@marcus-oscarsson
marcus-oscarsson merged commit 6a35c4e into mxcube:develop Jun 11, 2026
11 checks passed
@matyson
matyson deleted the mb-enable-siteviewer branch July 9, 2026 08:26
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.

2 participants