ISISComputingGroup/ibex_bluesky_core

Muons: set run "comment" from bluesky scan

Ouverte

#196 ouverte le 6 mai 2025

 (0 commentaire) (0 réaction) (0 personne assignée)Python (0 fork)auto 404
Muonsgood first issue

Métriques du dépôt

Stars
 (4 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

As a user on muons I want to be able to find what scan a DAE .nxs file was part of.

To do this, insert the bluesky scan ID (or another suitable string identifier) as the "run comment" in the experiment details. This way we have a two-way link between .nxs which has a pointer to the scan it's part of, and the scan which has pointers to the .nxs it generated.

We can write this as a bluesky preprocessor that reacts to open_run and close_run messages. After we've seen the open_run message we know the UID of a scan, the preprocessor can then write this to the comment field. On close run it should put the comment back to whatever it was before.

Guide contributeur