From d83542c33d6b3ac83893736751387f14df4f9af0 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Thu, 28 Mar 2024 12:34:17 -0400 Subject: [PATCH] Fix failing dev test by using lim_helpers --- lcviz/state.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lcviz/state.py b/lcviz/state.py index ddf393e2..c45596a2 100644 --- a/lcviz/state.py +++ b/lcviz/state.py @@ -24,9 +24,10 @@ def _reset_att_limits(self, ax): if not np.all(np.isfinite([ax_min, ax_max])): # pragma: no cover return - with delay_callback(self, f'{ax}_min', f'{ax}_max'): - setattr(self, f'{ax}_min', ax_min) - setattr(self, f'{ax}_max', ax_max) + lim_helper = getattr(self, f'{ax}_lim_helper') + lim_helper.lower = ax_min + lim_helper.upper = ax_max + lim_helper.update_values() def _reset_x_limits(self, *event): self._reset_att_limits('x')