Skip to content
Open
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
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Other Changes and Additions
Bug Fixes
---------

- Fix broken "Learn More" links throughout app. [#4173]

Mosviz
^^^^^^

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Create a 2D image from a data cube.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/moment_maps.html' # noqa

self.moment = None

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/cubeviz/plugins/slice/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Select and interact with slice of cube in image viewers.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/spectral_slice.html' # noqa

self._cached_properties = ['valid_selection_values', 'valid_selection_values_sorted',
'valid_indicator_values', 'valid_indicator_values_sorted',
Expand Down
3 changes: 3 additions & 0 deletions jdaviz/configs/cubeviz/plugins/sonify_data/sonify_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def __init__(self, *args, **kwargs):

self._plugin_description = 'Sonify a data cube'
self.docs_description = 'Sonify a data cube using the Strauss package.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/sonify.html'

if not self.has_strauss or sd.default.device[1] < 0:
self.disabled_msg = ('To use Sonify Data, install strauss and restart Jdaviz. You '
'can do this by running pip install strauss in the command'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Extract a spectrum from a spectral cube.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/3d_spectral_extraction.html' # noqa

self.extracted_spec = None

Expand Down
1 change: 1 addition & 0 deletions jdaviz/configs/default/plugins/collapse/collapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, *args, **kwargs):
self._plugin_description = 'Collapse a spectral cube along one axis.'

if self.config == "deconfigged":
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/collapse.html'
self.observe_traitlets_for_relevancy(traitlets_to_observe=['dataset_items'])

def _get_supported_viewers(self):
Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/default/plugins/data_quality/data_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Data Quality layer visualization options.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/data_quality.html' # noqa

self.icons = {k: v for k, v in self._app.state.icons.items()}

Expand Down
3 changes: 3 additions & 0 deletions jdaviz/configs/default/plugins/export/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Export data/plots and other outputs to a file.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/export/index.html'

# NOTE: if adding export support for non-plugin products, also update the language
# in the UI as well as in _set_dataset_not_supported_msg
self.dataset.filters = ['is_not_wcs_only', 'not_child_layer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(self, *args, **kwargs):
self._plugin_description = 'Smooth data with a Gaussian kernel.'

if self._app.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/gaussian_smooth.html' # noqa
self.observe_traitlets_for_relevancy(traitlets_to_observe=['dataset_items'])

def _get_supported_viewers(self):
Expand Down
3 changes: 3 additions & 0 deletions jdaviz/configs/default/plugins/line_lists/line_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def custom_toolbar(viewer):
# description displayed under plugin title in tray
self._plugin_description = 'Plot spectral lines from preset or custom line lists.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/line_lists.html' # noqa

def _irrelevant_msg_callback(self, *args):
if not hasattr(self, 'viewer'):
return None
Expand Down
1 change: 1 addition & 0 deletions jdaviz/configs/default/plugins/markers/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __init__(self, *args, **kwargs):
'world_ra', 'world_dec', 'world:unreliable',
'value', 'value:unit', 'value:unreliable',
'viewer']
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/info/markers.html'
else:
# allow downstream configs to override headers
headers = kwargs.get('headers', [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(self, *args, **kwargs):

if self.config == "deconfigged":
self.observe_traitlets_for_relevancy(traitlets_to_observe=['dataset_items'])
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/info/metadata.html'

@property
def user_api(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Fit an analytic model to data or a subset of data.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/model_fitting.html' # noqa

# create the label first so that when model_component defaults to the first selection,
# the label automatically defaults as well
self.model_component_label = AutoTextField(self, 'comp_label', 'comp_label_default',
Expand Down
3 changes: 3 additions & 0 deletions jdaviz/configs/default/plugins/plot_options/plot_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Set viewer and layer display options.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/settings/plot_options.html' # noqa

self.layer = LayerSelect(self, 'layer_items', 'layer_selected',
'viewer_selected', 'layer_multiselect')

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def __init__(self, *args, **kwargs):
self._plugin_description = 'Select and interact with spectral subsets.'
else:
self._plugin_description = 'Select and interact with subsets.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/subsets/index.html'

self.components = {
'g-subset-mode': SelectionModeMenu(session=self.session)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Perform aperture photometry for drawn regions.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/aperture_photometry.html' # noqa

self.dataset.add_filter('is_image_or_flux_cube')

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/catalogs/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Query catalog for objects within region on sky.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/catalog_search.html' # noqa

self.viewer.add_filter('is_imviz_image_viewer')

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/compass/compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Show active data label, compass, and zoom box.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/compass.html' # noqa

self.hub.subscribe(self, AddDataMessage, handler=self._on_viewer_data_changed)
self.hub.subscribe(self, RemoveDataMessage, handler=self._on_viewer_data_changed)
Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/footprints/footprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Show instrument footprints as overlays on image viewers.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/footprints.html' # noqa

self.viewer.multiselect = True # multiselect always enabled
# require a viewer's reference data to have WCS so that footprints can be mapped to sky
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Plot line profiles across X and Y.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/image_profiles.html' # noqa

self.plot_across_x = Plot(self, name='across_x')
self.plot_across_y = Plot(self, name='across_y')
Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/imviz/plugins/orientation/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def __init__(self, *args, **kwargs):
self._plugin_description = 'Rotate image viewer orientation and choose alignment (pixel or sky).' # noqa

self.docs_description = "Control how images are aligned (by pixel or WCS) and set the orientation/rotation of the viewer." # noqa
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/orientation.html' # noqa

self.viewer._allow_multiselect = False
self.viewer.add_filter('is_imviz_image_viewer', 'reference_has_wcs')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Extract a ramp from a ramp cube.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/ramp_extraction.html' # noqa

self.dataset.filters = ['is_ramp_group_cube']

# TODO: in the future this could be generalized with support in SelectPluginComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Return statistics for spectral line.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/line_analysis.html' # noqa

self.update_results(None)

# require entries to be in spectrum-viewer (not other cubeviz images, etc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def __init__(self, *args, **kwargs):
# description displayed under plugin title in tray
self._plugin_description = 'Convert the units of displayed physical quantities.'

if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/settings/display_units.html' # noqa

self._cached_properties = ['image_layers']

if self.config not in ['specviz', 'specviz2d', 'cubeviz', 'deconfigged']:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Visualize cross-dispersion profile.'
if self.config == 'deconfigged':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link works, but there is no button for "Learn More" under the Cross Dispersion Profile plugin on the UI.

self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/cross_dispersion_profile.html' # noqa

self.dataset = DatasetSelect(self,
'dataset_items',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def __init__(self, *args, **kwargs):

# description displayed under plugin title in tray
self._plugin_description = 'Extract 1D spectrum from 2D image.'
if self.config == 'deconfigged':
self.docs_link = f'https://jdaviz.readthedocs.io/en/{self.vdocs}/plugins/2d_spectral_extraction.html' # noqa

# TRACE
self.trace_trace = DatasetSelect(self,
Expand Down
Loading