Skip to content

Commit

Permalink
Remove parameter default
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 31, 2024
1 parent 815ccfa commit 52aab75
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions brainglobe_utils/brainmapper/transform_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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
)
Expand Down Expand Up @@ -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]:
"""
Expand All @@ -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.
Expand Down

0 comments on commit 52aab75

Please sign in to comment.