Skip to content

Commit

Permalink
ENH: initial commit of hxnfly
Browse files Browse the repository at this point in the history
  • Loading branch information
HXN Operator authored and tacaswell committed Jan 8, 2019
0 parents commit 3e872fb
Show file tree
Hide file tree
Showing 39 changed files with 4,818 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.sw[op]
*.orig
*.pyc
*.egg-info
build/
dist/
31 changes: 31 additions & 0 deletions hxnfly/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<--- bluesky python/ppmac------->

fly.FlyBase
|
fly.FlyScan
|
bs.FlyPlan fly1d.Fly1D
| |
bs.FlyPlan1D <- fly_zp.Fly1D_ZP


Where the flyscan class is determined from fly_class_from_motor, based on the
motor passed in.

... clear as mud!


So in the environment, you have a scan defined:
callable_scan = bs.FlyScan1D()
user calls:
callable_scan(motor, *user_args, **user_kwargs)
bs.FlyScan.__call__ checks the motor to see which module it belongs to, assume
for now it's a zoneplate module fine sample stage axis. fly_zp.Fly1D_ZP is
then created:
callable_scan.flyer = fly_zp.Fly1D_ZP(**callable_scan.init_kw)
flyer.configure sets up the describe fields, macros for the script, calls
flyer._new_scan and sends the generated script to the ppmac.

The bluesky run-engine eventually iterates over the callable_scan._gen
set of messages - configuring, opening runs, creating checkpoints, kicking off
the flyscan subscans, and collecting data from them.
17 changes: 17 additions & 0 deletions hxnfly/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
import logging

MODULE_PATH = os.path.dirname(os.path.abspath(__file__))
SCRIPT_PATH = os.path.join(MODULE_PATH, 'scripts')

logger = logging.getLogger(__name__)

from .log import log_setup

log_setup(logging.DEBUG)

# from .fly1d import Fly1D
# from .fly2d import Fly2D
#
# from .fly_mll import (Fly1D_MLL, Fly2D_MLL)
# from .fly_zp import (Fly1D_ZP, Fly2D_ZP)
Loading

0 comments on commit 3e872fb

Please sign in to comment.