Skip to content

Commit

Permalink
fixes #257
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 6, 2019
1 parent 2239964 commit cf8162e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstools/synApps/swait.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Component as Cpt,
DynamicDeviceComponent as DDC,
FormattedComponent as FC)
from ophyd import EpicsSignal
from ophyd import EpicsSignal, Signal

from ._common import EpicsRecordDeviceCommonAll, EpicsRecordFloatFields
from .. import utils as APS_utils
Expand Down Expand Up @@ -224,7 +224,7 @@ def _setup_peak_swait_(calc, desc, swait, ref_signal, center=0, width=1, scale=1
"""
# consider a noisy background, as well (needs a couple calcs)
assert(isinstance(swait, SwaitRecord))
assert(isinstance(ref_signal, EpicsSignal))
assert(isinstance(ref_signal, Signal))
assert(width > 0)
assert(0.0 <= noise <= 1.0)
swait.reset()
Expand Down

0 comments on commit cf8162e

Please sign in to comment.