Skip to content

Instantly share code, notes, and snippets.

@ericdill
Created April 17, 2015 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdill/4ff56655fd54068647ef to your computer and use it in GitHub Desktop.
Save ericdill/4ff56655fd54068647ef to your computer and use it in GitHub Desktop.
All the hooks!
--------------
Non-blocking callbacks
======================
- Scan start
- RunStart Document created
- EventDescriptor document created
- Event Document created
- RunStop Document created
- Scan stop
Optionally-blocking callbacks
=============================
- The positioner and detector triggering hooks should execute in the same
process as the currently running scan
- Positioner hooks
- before move
- during move
- after move
- Detector triggering hooks
- before detector triggering
- during detector triggering
- after detector triggering
Other magic things that should be considered
--------------------------------------------
- define conditions for "pause-scan", "recollect-datapoint"
- This could be done by raising a "PauseScanException" or
"RecollectDatapointException" in the callback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment