Skip to content

Commit

Permalink
Conform to new linting rules (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov authored Aug 7, 2024
1 parent 2536bea commit dce3660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellfinder/napari/curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _get_layer_names(
layer_names = [
layer.name
for layer in self.viewer.layers
if type(layer) == layer_type
if isinstance(layer, layer_type)
]

if layer_names:
Expand Down Expand Up @@ -329,7 +329,7 @@ def mark_point_as_type(self, point_type: str):

if len(self.viewer.layers.selection) == 1:
layer = list(self.viewer.layers.selection)[0]
if type(layer) == napari.layers.Points:
if isinstance(layer, napari.layers.Points):
if len(layer.data) > 0:
if point_type == "cell":
destination_layer = self.training_data_cell_layer
Expand Down

0 comments on commit dce3660

Please sign in to comment.