Skip to content

Commit

Permalink
fix reference to plugins in metadata
Browse files Browse the repository at this point in the history
* changed to be the human-friendly name in spacetelescope#2680, but missed updating a few cases, resulting in moment maps not being linked correctly
  • Loading branch information
kecnry committed Apr 23, 2024
1 parent 3c3e174 commit f7a9da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
):
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit f7a9da4

Please sign in to comment.