Skip to content

Commit 04e089c

Browse files
committed
inline ArrayEditorWidget._reset_minmax as it was only used in one place
1 parent 4ae7b1e commit 04e089c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

larray_editor/arraywidget.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,6 @@ def dropEvent(self, event):
731731
else:
732732
event.ignore()
733733

734-
def _reset_minmax(self):
735-
self.model_data.reset_minmax()
736-
737734
def _update_models(self, reset_model_data, reset_minmax):
738735
# axes names
739736
axes_names = self.data_adapter.get_axes_names(fold_last_axis=True)
@@ -754,7 +751,7 @@ def _update_models(self, reset_model_data, reset_minmax):
754751
self.model_data.set_bg_value(bg_value, reset=False)
755752
# reset min and max values if required
756753
if reset_minmax:
757-
self._reset_minmax()
754+
self.model_data.reset_minmax()
758755
# reset the data model if required
759756
if reset_model_data:
760757
self.model_data.reset()

0 commit comments

Comments
 (0)