Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 387fb4c

Browse files
committed
reverted input layers to 1 and tested test plot works with 1 input layer only
1 parent 3cd039a commit 387fb4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/napari_matplotlib/scatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class FeaturesScatterWidget(ScatterBaseWidget):
104104
Widget to scatter data stored in two layer feature attributes.
105105
"""
106106

107-
n_layers_input = Interval(2, 2)
107+
n_layers_input = Interval(1, 1)
108108
# All layers that have a .features attributes
109109
input_layer_types = (
110110
napari.layers.Labels,

src/napari_matplotlib/tests/test_scatter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def test_features_scatter_widget(make_napari_viewer, astronaut_data):
6969

7070
# De-select existing selection
7171
viewer.layers.selection.clear()
72-
viewer.layers.selection.add(
73-
viewer.layers["points_data"]
74-
) # images need to be selected
72+
# viewer.layers.selection.add(
73+
# viewer.layers["points_data"]
74+
# ) # images need to be selected
7575
viewer.layers.selection.add(viewer.layers["label+features"])
7676

7777
return deepcopy(fig)

0 commit comments

Comments
 (0)