From f9241777d7ed4745ea55dfe30dc33bb2e21953d6 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Tue, 16 Apr 2024 22:51:19 +0100 Subject: [PATCH] Fix code style --- glue/config_gen.py | 0 glue/core/state_objects.py | 6 ++---- glue/main.py | 0 glue/viewers/matplotlib/tests/test_state.py | 0 4 files changed, 2 insertions(+), 4 deletions(-) mode change 100755 => 100644 glue/config_gen.py mode change 100755 => 100644 glue/main.py mode change 100755 => 100644 glue/viewers/matplotlib/tests/test_state.py diff --git a/glue/config_gen.py b/glue/config_gen.py old mode 100755 new mode 100644 diff --git a/glue/core/state_objects.py b/glue/core/state_objects.py index d52bf6e41..6262964ed 100644 --- a/glue/core/state_objects.py +++ b/glue/core/state_objects.py @@ -332,11 +332,9 @@ def update_values(self, force=False, use_default_modifiers=False, **properties): self._previous_units = display_units - if ( - set(properties) == {'display_units'} and + if (set(properties) == {'display_units'} and self.lower is not None and - self.upper is not None - ): + self.upper is not None): converter = UnitConverter() diff --git a/glue/main.py b/glue/main.py old mode 100755 new mode 100644 diff --git a/glue/viewers/matplotlib/tests/test_state.py b/glue/viewers/matplotlib/tests/test_state.py old mode 100755 new mode 100644