Skip to content

Stop generating unused diffraction previews#378

Merged
pblowey merged 1 commit into
mainfrom
stop-generating-unnecessary-thumbnails
Jun 16, 2026
Merged

Stop generating unused diffraction previews#378
pblowey merged 1 commit into
mainfrom
stop-generating-unnecessary-thumbnails

Conversation

@pblowey

@pblowey pblowey commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Fixes https://github.com/DiamondLightSource/mx-analysis/issues/77 and partially fixes https://github.com/DiamondLightSource/mx-analysis/issues/76.

Stop the images service from generating any thumbnails as these have not been used by SynchWeb for a long time.

Make mimas only run the generate-diffraction-preview recipe for rotation data collections. The recipes still make separate calls to the images service as well, which currently duplicates the diffraction previews. The calls to the images service in the recipes will need to be removed to fix this.

@pblowey

pblowey commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Updated I19 Mimas logic to create diffraction previews via the dedicated recipe for all data collections. Prior to this PR, I19 would create previews via the dedicated recipe only for eiger data collections and would rely on pia recipes to create the previews for pilatus. This likely resulted in duplicate previews for eiger collections.

I15 Mimas logic has not been touched as it seems that the I15 Mimas handler was only added as a prototype and doesn't see any use in production.

- Remove code for generating thumbnails
- Stop calling diffraction preview recipes for grid scans
- Ensure all rotation scans run the dedicated diffraction preview recipe
    as the call to images in the pia recipes is set to be removed. In
    some cases, this was causing duplication of diffraction previews.
    The new precedent is that diffraction previews are generated by the
    dedicated recipe and not by the pia recipes.
@pblowey pblowey force-pushed the stop-generating-unnecessary-thumbnails branch from 7b00b6b to 7fa5c30 Compare June 16, 2026 11:13
@pblowey

pblowey commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Force pushed as unintended files were included in commits.

@pblowey pblowey merged commit 77edb41 into main Jun 16, 2026
@pblowey pblowey deleted the stop-generating-unnecessary-thumbnails branch June 16, 2026 12:28
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