Skip to content

Commit

Permalink
DEV.ENH: Generalize comp argument of metho _wait to also handle c…
Browse files Browse the repository at this point in the history
…allable arguments.
  • Loading branch information
fernandohds564 committed Oct 22, 2021
1 parent d806b44 commit 09b3e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siriuspy/siriuspy/devices/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def _create_pvs(self, devname):

def _wait(self, propty, value, timeout=_DEF_TIMEOUT, comp='eq'):
"""."""
comp = getattr(_opr, comp)
if isinstance(comp, str):
comp = getattr(_opr, comp)
ntrials = int(timeout/_TINY_INTERVAL)
_time.sleep(4*_TINY_INTERVAL)
for _ in range(ntrials):
Expand Down

0 comments on commit 09b3e3a

Please sign in to comment.