Specify step and flyscan paths in a serializable, efficient and Pythonic way
Actively maintained. Last release 7 months ago, commits in 13 of the last 26 weeks. A safe choice.
pip install scanspecscanspec
Specify step and flyscan paths in a serializable, efficient and Pythonic way using combinations of:
- Specs like Line or Spiral
- Optionally Snaking
- Zip, Product and Concat to compose
Serialize the Spec rather than the expanded Path and reconstruct it on the server. It can then be iterated over like a cycler, or a stack of scan Frames can be produced and expanded Paths created to consume chunk by chunk.
| Source | https://github.com/bluesky/scanspec |
|---|---|
| PyPI | pip install scanspec |
| Docker | docker run ghcr.io/bluesky/scanspec:latest |
| Documentation | https://bluesky.github.io/scanspec |
| Releases | https://github.com/bluesky/scanspec/releases |
An example ScanSpec of a 2D snaked grid flyscan inside a circle spending 0.4s at each point:
from scanspec.specs import Ellipse, Fly
spec = Fly(0.4 @ Ellipse(x, 1, 1, 1/9, y, 2.8, y_step=1.7/11, snake=True))
Which when plotted looks like:
