Skip to content

Commit 23b113c

Browse files
C-AchardCopilot
andauthored
Update src/napari_deeplabcut/_widgets.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 20de17a commit 23b113c

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
@@ -833,7 +833,7 @@ def _map_keypoints(self, super_animal: str):
833833
predicate=lambda lyr: lyr.metadata.get("tables") is not None,
834834
)
835835
data = getattr(points_layer, "data", None)
836-
if points_layer is None or data is None or not np.any(data):
836+
if points_layer is None or data is None or not data.any():
837837
return
838838

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

0 commit comments

Comments
 (0)