Skip to content

Commit 708a455

Browse files
C-AchardCopilot
andcommitted
Update src/napari_deeplabcut/_widgets.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2385277 commit 708a455

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/napari_deeplabcut/_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def _map_keypoints(self, super_animal: str):
838838
predicate=lambda lyr: lyr.metadata.get("tables") is not None,
839839
)
840840
data = getattr(points_layer, "data", None)
841-
if points_layer is None or data is None or not np.any(data):
841+
if points_layer is None or data is None or not data.any():
842842
return
843843

844844
xy = points_layer.data[:, 1:3]

0 commit comments

Comments
 (0)