From 61e146004fc60a7af97ff0759e91b3a1143a7335 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Thu, 15 Feb 2024 11:45:29 +1100 Subject: [PATCH] Fix setting of layer name --- src/affinder/_tests/test_affinder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/affinder/_tests/test_affinder.py b/src/affinder/_tests/test_affinder.py index 113ff79..b9246e3 100644 --- a/src/affinder/_tests/test_affinder.py +++ b/src/affinder/_tests/test_affinder.py @@ -60,8 +60,10 @@ def test_layer_types(make_napari_viewer, tmp_path, reference, moving): viewer = make_napari_viewer() - l0 = viewer.add_layer(reference, name='layer0') - l1 = viewer.add_layer(moving, name='layer1') + l0 = viewer.add_layer(reference) + l0.name = 'layer0' + l1 = viewer.add_layer(moving) + l1.name = 'layer1' my_widget_factory = start_affinder() my_widget_factory(