Support printing from plans for python client to see
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
Rechercherichtung
The payload names no files, only the mv and mvr plan stubs, the scan command and the suspender pause. Start by tracing how a plan's printed output currently reaches the blueapi python client, if it does at all. The main open question is the mechanism for relaying plan-side messages to the client, which needs a maintainer decision before any code. Done means that design is agreed in the thread.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Currently, if you print something for a user in a plan, the python client will have zero visibility of this. This is a crucial feature as we use this to provide information to users all the time in GDA.
Some use cases
In GDA, it is very underrated to see when moving something, it prints to the terminal that the move was successful and prints the final posiition
>>> pos dmx 1
Move completed: dmx : 1.0000
Very useful when user scripting so that the terminal output still tells the user what is happening.
To do this, we would wrap mv and mvr plan stubs and then get them to read the devices (if readable) and then print the output for the user to see. This I think can technically be achieved client side if we were to wrap them, but would probably be nicer if it was all within a plan.
A second use case we have when doing a scan we can "pause" a scan with another device we need to relay this info to the user
>>> scan dmx 1 100 1 checkiid
=== Scan started at 2026-11-24 10:28:53.268 ===
=== Scannable state checking: iidaccesscontrol must be in state: ENABLED, currently False
>>> pos iidaccesscontrol "ENABLED"
*** checkiid: Beam back up at: 10:29:02 . Resuming scan in 5.0s...
*** checkiid: Resuming scan now at 10:29:07
Writing data to file: /scratch/gda_development/gda-master-default/eclipse/gda_data_non_live/2026/0-0/i09-357.nxs
dmx checkiid_beamok
1.0000 1
2.0000 1
3.0000 1
4.0000 1
5.0000 1
6.0000 1
7.0000 1
8.0000 1
9.0000 1
10.000 1
11.000 1
12.000 1
13.000 1
14.000 1
15.000 1
16.000 1
17.000 1
*** checkiid: Beam down at: 10:29:08 . Pausing scan...
Waiting for ID 'iidaccesscontrol' access - This is controlled by main control room (tel:8899)
This in bluesky will be handled by suspenders, but we still need a way to relay this information to the user.
Another example is
2026-09-28 01:54:31,294 | analyserscan ew4000 'user.seq' smpm hm3amp20 1;pos fsi1 "In";
2026-09-28 01:54:31,382 | === Scan started at 2026-09-28 01:54:31.382 ===
2026-09-28 01:54:31,440 | Found the following regions enabled:
2026-09-28 01:54:31,440 | - Si1s_6600eV
2026-09-28 01:54:31,440 | - Ga2p_6600eV
2026-09-28 01:54:31,440 | - O1s_6600eV_Rocky
2026-09-28 01:54:31,440 | - Sb3p_6600eV
2026-09-28 01:54:31,440 | - Ga3dSb4dVB_6600eV
2026-09-28 01:54:31,440 | - N1s_6600eV
2026-09-28 01:54:31,440 | Writing data to file: /dls/i09/data/2026/sw46128-1/i09-327906.nxs
Here we wrap the scan command to read a file and configurable a scannable. The difference now is that we load the data client side into a model, then pass this model into the plan. However, I still need to print to the user what was found in the file. This would be extremely useful if this could all be done inside a plan and I am sure many other beamlines have many other use cases I am missing
- Vorherrschende Sprache
- Python
- Sterne
- 14
- Forks
- 15
- Ø Merge
- 3 T. 2 Std.
- Gemergte PRs (30 T.)
- 35
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DiamondLightSource/blueapi
-
bug support: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DiamondLightSource/blueapi#1802 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
support: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DiamondLightSource/blueapi#1772 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
deployment dev-environment
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DiamondLightSource/blueapi#1623 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Cannot Install SoftiocOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DiamondLightSource/blueapi#1605 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
DiamondLightSource/blueapi#1494 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in DiamondLightSource/blueapi
Ähnliche Issues
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
ClickHouse/clickhouse-connect#1266 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
biosustain/growthcurves_app#89 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
canonical/loki-k8s-operator#695 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag