Skip to content

Commit a6b7459

Browse files
committed
fixes #259
1 parent 79610b1 commit a6b7459

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apstools/synApps/swait.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
DynamicDeviceComponent as DDC,
4747
FormattedComponent as FC)
4848
from ophyd import EpicsSignal, Signal
49+
from ophyd.signal import EpicsSignalBase
4950

5051
from ._common import EpicsRecordDeviceCommonAll, EpicsRecordFloatFields
5152
from .. import utils as APS_utils
@@ -228,7 +229,7 @@ def _setup_peak_swait_(calc, desc, swait, ref_signal, center=0, width=1, scale=1
228229
"""
229230
# consider a noisy background, as well (needs a couple calcs)
230231
assert(isinstance(swait, SwaitRecord))
231-
assert(isinstance(ref_signal, Signal))
232+
assert(isinstance(ref_signal, EpicsSignalBase))
232233
assert(width > 0)
233234
assert(0.0 <= noise <= 1.0)
234235
swait.reset()

0 commit comments

Comments
 (0)