Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
  • Loading branch information
kecnry and pllim committed Mar 16, 2023
1 parent cbc5af3 commit 1f387a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion docs/imviz/export_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ Markers Table

All mouseover information in the :ref:`markers plugin <markers-plugin>` can be exported to an
:ref:`astropy table <astropy:astropy-table>`
by calling :meth:`~jdaviz.core.template_mixin.TableMixin.export_table` (see :ref:`plugin-apis`).
by calling :meth:`~jdaviz.core.template_mixin.TableMixin.export_table` (see :ref:`plugin-apis`):

.. code-block:: python
markers_plugin = imviz.plugins["Markers"]
markers_table = markers_plugin.export_table()
2 changes: 2 additions & 0 deletions docs/mosviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Subset Tools
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz.

.. _imviz_export_markers:

Markers
=======

Expand Down
1 change: 1 addition & 0 deletions docs/specviz/export_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ To extract all of the model parameters:
myparams
where the ``model_label`` parameter identifies which model should be returned.
.. _specviz-export-markers:

Markers Table
=============
Expand Down
4 changes: 1 addition & 3 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,7 @@ def select_next(self):

cycle = self.choices
curr_ind = cycle.index(self.selected)
if curr_ind >= len(cycle) - 1:
curr_ind = -1
self.selected = cycle[curr_ind + 1]
self.selected = cycle[(curr_ind + 1) % len(cycle)]
return self.selected

@property
Expand Down

0 comments on commit 1f387a9

Please sign in to comment.