From e2a853f0f300221c3d836b9446424614931c529a Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Mon, 25 Nov 2024 14:31:32 -0500 Subject: [PATCH] remove set_as_orientation kwarg --- .../imviz/plugins/orientation/orientation.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/jdaviz/configs/imviz/plugins/orientation/orientation.py b/jdaviz/configs/imviz/plugins/orientation/orientation.py index 619d519338..5fe4e0931e 100644 --- a/jdaviz/configs/imviz/plugins/orientation/orientation.py +++ b/jdaviz/configs/imviz/plugins/orientation/orientation.py @@ -545,8 +545,7 @@ def _set_north_up_east_left(self, label="North-up, East-left", set_as_orientatio elif set_as_orientation: self.orientation.selected = label - def set_north_up_east_left(self, label="North-up, East-left", - set_as_orientation=True): + def set_north_up_east_left(self, label="North-up, East-left"): """ Set (and create if necessary) the rotation angle and flip to achieve North up and East left according to the reference image WCS. @@ -557,11 +556,8 @@ def set_north_up_east_left(self, label="North-up, East-left", Data label for the orientation layer. If already exists, will be set as the current orientation layer according to ``set_as_orientation``. Otherwise, a new layer will be created with this label. - set_as_orientation : bool - Whether to set as the current orientation. If False, the new layer will still - be created and available for selection, but will not be set as the current orientation. """ - self._set_north_up_east_left(label=label, set_as_orientation=set_as_orientation) + self._set_north_up_east_left(label=label, set_as_orientation=True) def _set_north_up_east_right(self, label="North-up, East-right", set_as_orientation=False, from_ui=False): @@ -573,8 +569,7 @@ def _set_north_up_east_right(self, label="North-up, East-right", set_as_orientat elif set_as_orientation: self.orientation.selected = label - def set_north_up_east_right(self, label="North-up, East-right", - set_as_orientation=True): + def set_north_up_east_right(self, label="North-up, East-right"): """ Set (and create, if necessary) the rotation angle and flip to achieve North up and East right according to the reference image WCS. @@ -585,11 +580,8 @@ def set_north_up_east_right(self, label="North-up, East-right", Data label for the orientation layer. If already exists, will be set as the current orientation layer according to ``set_as_orientation``. Otherwise, a new layer will be created with this label. - set_as_orientation : bool - Whether to set as the current orientation. If False, the new layer will still - be created and available for selection, but will not be set as the current orientation. """ - self._set_north_up_east_right(label=label, set_as_orientation=set_as_orientation) + self._set_north_up_east_right(label=label, set_as_orientation=True) def vue_select_north_up_east_left(self, *args, **kwargs): self._set_north_up_east_left(set_as_orientation=True, from_ui=True)