From 52aab7521597be0e389b8ebd09a2789f67bc2b03 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Wed, 31 Jul 2024 12:05:49 +0100 Subject: [PATCH] Remove parameter default --- brainglobe_utils/brainmapper/transform_widget.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/brainglobe_utils/brainmapper/transform_widget.py b/brainglobe_utils/brainmapper/transform_widget.py index ce8733b..2fcceb5 100644 --- a/brainglobe_utils/brainmapper/transform_widget.py +++ b/brainglobe_utils/brainmapper/transform_widget.py @@ -49,7 +49,9 @@ def __init__(self, viewer: napari.viewer.Viewer): self.atlas = None self.transformed_points = None - self.image_layer_names = self._get_layer_names() + self.image_layer_names = self._get_layer_names( + layer_type=napari.layers.Image + ) self.points_layer_names = self._get_layer_names( layer_type=napari.layers.Points ) @@ -66,7 +68,9 @@ def update_layer_list(v: napari.viewer.Viewer) -> None: v : napari.viewer.Viewer The napari viewer instance. """ - self.image_layer_names = self._get_layer_names() + self.image_layer_names = self._get_layer_names( + layer_type=napari.layers.Image + ) self.points_layer_names = self._get_layer_names( layer_type=napari.layers.Points ) @@ -101,7 +105,7 @@ def _update_combobox_options( def _get_layer_names( self, - layer_type: napari.layers.Layer = napari.layers.Image, + layer_type: napari.layers.Layer, default: str = "", ) -> List[str]: """ @@ -110,7 +114,7 @@ def _get_layer_names( Parameters ---------- layer_type : napari.layers.Layer, optional - The type of layer to get names for. Default is napari.layers.Image. + The type of layer to get names for. default : str, optional Default values to include in the list. Default is an empty string.