Skip to content

Commit

Permalink
Fix sleep in dummy camera grab
Browse files Browse the repository at this point in the history
time.sleep doesn't accept pint quantities, so we have to get
the magnitude of the time and then can do the sleep.
(cherry picked from commit b10bf51)
  • Loading branch information
tfarago committed Nov 1, 2013
1 parent a3ca8cd commit 33ff38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concert/devices/cameras/dummy.py
Expand Up @@ -176,6 +176,6 @@ def _grab_real(self):
to_sleep = q.count / self.frame_rate
to_sleep = to_sleep.to_base_units() - duration * q.s
if to_sleep > 0 * q.s:
time.sleep(to_sleep)
time.sleep(to_sleep.magnitude)

return np.cast[np.uint16](tmp)

0 comments on commit 33ff38d

Please sign in to comment.