Skip to content

Commit

Permalink
Merge 16d9c9a into 5e3d188
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed May 20, 2019
2 parents 5e3d188 + 16d9c9a commit 8e9f398
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apstools/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def get_versions():
# versionfile_source is the relative path from the top of the source
# tree (where the .git directory might live) to this file. Invert
# this to find the root from __file__.
for _i in cfg.versionfile_source.split('/'):
for _ in cfg.versionfile_source.split('/'):
root = os.path.dirname(root)
except NameError:
return {"version": "0+unknown", "full-revisionid": None,
Expand Down
4 changes: 2 additions & 2 deletions apstools/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def __init__(self):

def receiver(self, key, document):
"""keep all documents from recent plan in memory"""
uid = document.get("uid", None) or document.get("datum_id", None)
if "uid" is None:
uid = document.get("uid") or document.get("datum_id")
if uid is None:
raise KeyError("No uid in '{}' document".format(key))
self.uids.append(uid)
logger = logging.getLogger(__name__)
Expand Down
15 changes: 15 additions & 0 deletions apstools/synApps_ophyd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@
from .save_data import *
from .sscan import *
from .swait import *

__all__ = """
busyRecord
BusyStatus
SaveData
sscanRecord
sscanDevice
swaitRecord
userCalcsDevice
swait_setup_random_number
swait_setup_gaussian
swait_setup_lorentzian
swait_setup_incrementer
""".split()
]

0 comments on commit 8e9f398

Please sign in to comment.