-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should Devices have an ophyd sync compatible repr? #709
Comments
I am in favor of having nice reprs, but am a bit worried that analysis pipelines are depending on the exact details of the repr. Everything you could want to know about the scan that are in that list should be available in a more machine-friendly form somewhere else in the documents. |
In which case I propose we add a repr with just the @burkeds what exactly are the analysis pipelines reading from the repr? Could they get the same information elsewhere in the doc as @tacaswell suggests? |
To take a slightly harder stance, in general I do not think that parsibility of repr/str output is part of the "stable API" and can be broken at any time as the target consumer of these is mostly humans (our devices are for the most part too complex to be good candidates for round-trippable reprs, but even if they were the target is Python not ad-hoc parsing). |
We are just reading the names of the devices in Here in the bluesky documentation (https://blueskyproject.io/bluesky/main/metadata.html) you defined a set of "standard" fields present in all This naturally means that any bluesky analysis pipelines can be expected to use this standard set of metadata that has been defined. Especially if those pipelines are intended for multi-beamline or multi-facility use. Since these I do not think that this is an ideal approach, however this seems like a natural consequence of choices made when defining |
I'll also confirm that the people here working on analysis of Bluesky documents have interpreted the presence of this "standard" set of metadata in the plans to mean it is the "official" Bluesky metadata scheme that should be complied with and that schemes which do not comply with it are not "real" Bluesky schema. |
It looks like the However the @tacaswell is there an alternative way to get the names of the detectors? |
Looks like detectors are at the top level here: |
At the moment
bps.scan
does this for the args:https://github.com/bluesky/bluesky/blob/f655a730887e813c1905f89281cb564dd88d4e88/src/bluesky/plans.py#L1251
@burkeds reports:
@tacaswell @danielballan thoughts?
The text was updated successfully, but these errors were encountered: