DiamondLightSource / blueapi

Apache License 2.0
6 stars 6 forks source link

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

Open stan-dot opened 6 months ago

stan-dot commented 6 months 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 6 months ago

@coretl where did the discussion on this end up?

coretl commented 6 months ago

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

stan-dot commented 5 months 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