Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/metro/devices/display/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,17 @@ def _get_axis_idx(axis_order):
return 0, 1

def dataAdded(self, d):
if self.pause_drawing:
if self.redraw_once:
self.redraw_once = False
else:
return

if self.throttle_total > 0:
if self.throttle_i < self.throttle_total:
self.throttle_i += 1
return

if self.history_streak > 0:
d = np.squeeze(d)

Expand Down Expand Up @@ -545,17 +556,6 @@ def dataAdded(self, d):
else:
raise ValueError('incompatible type')

if self.pause_drawing:
if self.redraw_once:
self.redraw_once = False
else:
return

if self.throttle_total > 0:
if self.throttle_i < self.throttle_total:
self.throttle_i += 1
return

z_scale = False

if self.auto_z_scale:
Expand Down