DiamondLightSource / blueapi

Apache License 2.0
2 stars 5 forks source link

Scan axis start, stop, step list[detectors] as a syntactic sugar over a call #463

Open stan-dot opened 1 month ago

stan-dot commented 1 month ago

idea - allow for quickscans with known syntax used now in the ipython environment

This is a CLI thin wrapper with logic around a call to some step plan

prerequsites

Discussed with @joeshannon .

sample syntax: scan [axis] [start, stop, steps] [detector names]

callumforrester commented 1 month ago

@coretl where did the discussion on this end up?

coretl commented 1 month ago

I can't remember a discussion on this... Gareth definitely had opinions though

stan-dot commented 1 week ago

some ways to do this in Python:

  1. https://tomassetti.me/domain-specific-languages-in-python-with-textx/
  2. https://dbader.org/blog/writing-a-dsl-with-python