Skip to content

Commit bc1646e

Browse files
committed
MNT #148 comparison of constants reesolved
1 parent 5e3d188 commit bc1646e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apstools/callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def __init__(self):
6767

6868
def receiver(self, key, document):
6969
"""keep all documents from recent plan in memory"""
70-
uid = document.get("uid", None) or document.get("datum_id", None)
71-
if "uid" is None:
70+
uid = document.get("uid") or document.get("datum_id")
71+
if uid is None:
7272
raise KeyError("No uid in '{}' document".format(key))
7373
self.uids.append(uid)
7474
logger = logging.getLogger(__name__)

apstools/synApps_ophyd/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@
3737
from .save_data import *
3838
from .sscan import *
3939
from .swait import *
40+
41+
# __all__ = []

0 commit comments

Comments
 (0)