Skip to content

Commit

Permalink
Fix timeseries bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallory Wittwer committed Jul 12, 2024
1 parent 4e6f2e4 commit f9e7ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/napari_label_focus/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def _on_layer_change(self, e):
self.cb.clear()
for x in self.viewer.layers:
if isinstance(x, napari.layers.Labels):
self.cb.addItem(x.name, x.data)
if len(x.data.shape) in [2, 3]: # Only 2D and 3D data are supported.
self.cb.addItem(x.name, x.data)

def _on_cb_change(self, selection: str):
if selection == '':
Expand Down

0 comments on commit f9e7ba8

Please sign in to comment.