Skip to content

Commit 3518492

Browse files
committed
Only load data if some are found in the layer
1 parent eaddcf4 commit 3518492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/napari_deeplabcut/_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _load_dataframe(self):
461461
points_layer = layer
462462
break
463463

464-
if points_layer is None:
464+
if points_layer is None or ~np.any(points_layer.data):
465465
return
466466

467467
self.viewer.window.add_dock_widget(self, name="Trajectory plot", area="right")

0 commit comments

Comments
 (0)