Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 8, 2024
1 parent 5298747 commit dcd36ef
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions napari_clusters_plotter/_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ def manual_clustering_method(inside):

modifiers = QGuiApplication.keyboardModifiers()
if modifiers == Qt.ShiftModifier and clustering_ID in features.keys():
features[clustering_ID] = features[clustering_ID].mask(
inside, other=features[clustering_ID].max() + 1,
).to_numpy()
features[clustering_ID] = (

Check warning on line 105 in napari_clusters_plotter/_plotter.py

View check run for this annotation

Codecov / codecov/patch

napari_clusters_plotter/_plotter.py#L105

Added line #L105 was not covered by tests
features[clustering_ID]
.mask(
inside,
other=features[clustering_ID].max() + 1,
)
.to_numpy()
)
else:
features[clustering_ID] = inside.astype(int)
add_column_to_layer_tabular_data(
Expand Down

0 comments on commit dcd36ef

Please sign in to comment.