Skip to content

Commit

Permalink
adding all built-in bluesky.plans to the global namespace and mv and …
Browse files Browse the repository at this point in the history
…mvr bluesky.plan_stubs. I also added move and move_relative as aliases to mv and mvr with more descriptive names
  • Loading branch information
awalter-bnl committed Jun 21, 2024
1 parent 76e5289 commit 4d7136f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file modified src/ari_sxn_common/__pycache__/common_ophyd.cpython-312.pyc
Binary file not shown.
7 changes: 6 additions & 1 deletion src/ari_sxn_common/bluesky_test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from ari_ophyd import M1
from bluesky import RunEngine
from bluesky.callbacks.best_effort import BestEffortCallback
from bluesky.plans import count, scan, grid_scan
from bluesky.plans import *
from bluesky.plan_stubs import mv, mvr
from bluesky.utils import ProgressBarManager
from databroker import Broker
from ophyd.signal import EpicsSignalBase
Expand All @@ -20,6 +21,10 @@

EpicsSignalBase.set_defaults(timeout=10, connection_timeout=10)

# Create some aliases which might help new users
move = mv
move_relative = mvr

# Setup the m1 mirror ophyd object
m1_locations_data = {'measure': {'diag.locations': ('Out', None),
'slits.locations': ('nominal', None)},
Expand Down

0 comments on commit 4d7136f

Please sign in to comment.