Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mosviz gaussian smooth: only include data from spectrum-viewer #1452

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ Imviz
Mosviz
^^^^^^

- Data dropdown in the gaussian smooth plugin is limited to data entries from the
spectrum-viewer (excluding images and 2d spectra). [#1452]

Specviz
^^^^^^^

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def __init__(self, *args, **kwargs):
self.dataset._viewers = ['flux-viewer', 'spectrum-viewer']
# clear the cache in case the spectrum-viewer selection was already cached
self.dataset._clear_cache()
elif self.config == "mosviz":
# only allow smoothing 1d spectra
self.dataset._viewers = ['spectrum-viewer']
self.dataset._clear_cache()

# set the filter on the viewer options
self._update_viewer_filters()
Expand Down