Skip to content

Commit

Permalink
Merge pull request #309 from BiAPoL/fix-pandas-future-warning
Browse files Browse the repository at this point in the history
Adding another small fix for future warning
  • Loading branch information
Cryaaa authored Mar 26, 2024
2 parents cfb76d0 + 3ed84d7 commit 96e0649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napari_clusters_plotter/_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def manual_clustering_method(inside):

modifiers = QGuiApplication.keyboardModifiers()
if modifiers == Qt.ShiftModifier and clustering_ID in features.keys():
features[clustering_ID].mask(
inside, other=features[clustering_ID].max() + 1, inplace=True
features[clustering_ID] = features[clustering_ID].mask(
inside, other=features[clustering_ID].max() + 1
)
else:
features[clustering_ID] = inside.astype(int)
Expand Down

0 comments on commit 96e0649

Please sign in to comment.