Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 27, 2023
1 parent 978bdc4 commit 061b6b4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions glue/viewers/profile/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def _convert_units_x_limits(self, old_unit, new_unit):
converter = UnitConverter()

limits_native = converter.to_native(self.reference_data,
self.x_att, limits,
old_unit)
self.x_att, limits,
old_unit)

limits_new = converter.to_unit(self.reference_data,
self.x_att, limits_native,
new_unit)
self.x_att, limits_native,
new_unit)

with delay_callback(self, 'x_min', 'x_max'):
self.x_min, self.x_max = sorted(limits_new)
Expand Down Expand Up @@ -134,12 +134,12 @@ def _convert_units_y_limits(self, old_unit, new_unit):
data = layer_state.layer

limits_native = converter.to_native(data,
layer_state.attribute, limits,
old_unit)
layer_state.attribute, limits,
old_unit)

limits_new = converter.to_unit(self.reference_data,
layer_state.attribute, limits_native,
new_unit)
layer_state.attribute, limits_native,
new_unit)

with delay_callback(self, 'y_min', 'y_max'):
self.y_min, self.y_max = sorted(limits_new)
Expand Down

0 comments on commit 061b6b4

Please sign in to comment.