You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add query parameter to get Devices of particular types #829
changed the title [-]Add an endpoint to get Devices filtered by a Protocol name[/-][+]Add query parameter to get Devices of particular types[/+]on Feb 21, 2025
As far as possible, plans are going to be written to target the bluesky protocols (Movable, Readable) because then they can be re-used on the widest array of devices. But sometimes plans will use specific behaviour (e.g. a plan that takes a StandardDetector not a Readable because it sets the exposure time; or a plan that takes a specific class because it needs functionality only present on that device class).
For each of those plans, it should be possible to query /devices?q=<Readable|Movable|StandardDetector|Motor|SimBlobDetector|SimMotor> and find which devices are possible to use on my instrument.
For now limit to just the single DeviceType and later can worry about q=Movable&Readable.
Should also be in an extensible way, in case we want to add e.g. filtering the returned devices by name (find all devices for which their name matches .axs, or all of the StandardDetectors that match d.*
Activity
[-]Add an endpoint to get Devices filtered by a Protocol name[/-][+]Add query parameter to get Devices of particular types[/+]DiamondJoseph commentedon Feb 21, 2025
As far as possible, plans are going to be written to target the bluesky protocols (Movable, Readable) because then they can be re-used on the widest array of devices. But sometimes plans will use specific behaviour (e.g. a plan that takes a StandardDetector not a Readable because it sets the exposure time; or a plan that takes a specific class because it needs functionality only present on that device class).
def plan(dets: set[Readable], x: Movable, y: Movable) -> MsgGenerator:
def plam(dets: set[StandardDetector], x: Motor, y: Motor) -> MsgGenerator:
def plal(baz: set[SimBlobDetector], x: SimMotor, y: SimMotor) -> MsgGenerator:
For each of those plans, it should be possible to query
/devices?q=<Readable|Movable|StandardDetector|Motor|SimBlobDetector|SimMotor>and find which devices are possible to use on my instrument.DiamondJoseph commentedon Feb 21, 2025
For now limit to just the single DeviceType and later can worry about
q=Movable&Readable.Should also be in an extensible way, in case we want to add e.g. filtering the returned devices by name (find all devices for which their name matches
.axs, or all of the StandardDetectors that matchd.*DiamondJoseph commentedon Feb 21, 2025
~~I'm going to make a start on this and park it at EoD to go on leave 🥳 ~~
abbiemery commentedon Feb 25, 2026
I think this is going to depend on decisions re child device registration and access if nothing else. Deferring for now