From f7a9da468a38c2712c319b79b9459e171cf6fa56 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 23 Apr 2024 14:40:52 -0400 Subject: [PATCH] fix reference to plugins in metadata * changed to be the human-friendly name in #2680, but missed updating a few cases, resulting in moment maps not being linked correctly --- jdaviz/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jdaviz/app.py b/jdaviz/app.py index 5003dbd175..117eea8e17 100644 --- a/jdaviz/app.py +++ b/jdaviz/app.py @@ -709,8 +709,8 @@ def _link_new_data(self, reference_data=None, data_to_be_linked=None): dc.add_link(links) return - elif (linked_data.meta.get('Plugin', None) == 'SpectralExtraction' or - (linked_data.meta.get('Plugin', None) == ('GaussianSmooth') and + elif (linked_data.meta.get('Plugin', None) == 'Spectral Extraction' or + (linked_data.meta.get('Plugin', None) == ('Gaussian Smooth') and linked_data.ndim < 3 and # Cube linking requires special logic. See below ref_data.ndim < 3) ): @@ -749,7 +749,7 @@ def _link_new_data(self, reference_data=None, data_to_be_linked=None): ref_index = ind if (len_linked_pixel == 2 and (linked_data.meta.get("Plugin", None) in - ['MomentMap', 'Collapse'])): + ['Moment Maps', 'Collapse'])): if pixel_coord == 'z': linked_index = pc_linked.index('x') elif pixel_coord == 'y':