Skip to content

Commit

Permalink
Merge pull request #784 from pllim/doc-clarify-share-image
Browse files Browse the repository at this point in the history
DOC: Clarify share_image in Mosviz parser
  • Loading branch information
rosteen authored Aug 19, 2021
2 parents 11c68b4 + 0e03dbe commit 213ab0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jdaviz/configs/mosviz/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ def load_images(self, data_obj, data_labels=None, share_image=0):
String representing the label for the data item loaded via
``data_obj``. Can be a list of strings representing data labels
for each item in ``data_obj`` if ``data_obj`` is a list.
share_image : int, optional
If 0, images are treated as applying to individual spectra. If non-zero,
a single image will be shared by multiple spectra so that clicking a
different row in the table does not reload the displayed image.
Currently, if non-zero, the provided number must match the number of
spectra.
"""
super().load_data(data_obj, parser_reference="mosviz-image-parser",
data_labels=data_labels, share_image=share_image)
Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/mosviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def mos_image_parser(app, data_obj, data_labels=None, share_image=0):
If 0, images are treated as applying to individual spectra. If non-zero,
a single image will be shared by multiple spectra so that clicking a
different row in the table does not reload the displayed image.
Currently, if non-zero, the provided number must match the number of
spectra.
"""

if data_obj is None:
Expand Down

0 comments on commit 213ab0a

Please sign in to comment.