Skip to content

Commit

Permalink
fix import in test/docs
Browse files Browse the repository at this point in the history
(needed for "move code to allow importing slice mixins without circular imports")
  • Loading branch information
kecnry committed Jul 8, 2024
1 parent 611eb50 commit 41df811
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/reference/api_nuts_bolts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Utilities API
:no-inheritance-diagram:
:no-inherited-members:

.. automodapi:: jdaviz.configs.cubeviz.mixins
:no-inheritance-diagram:
:no-inherited-members:

.. automodapi:: jdaviz.configs.imviz.wcs_utils
:no-inheritance-diagram:
:no-inherited-members:
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _dragevent(self, data):
self._layer_state.contrast = contrast

def on_mouse_or_key_event(self, data):
from jdaviz.configs.imviz.helper import get_top_layer_index
from jdaviz.utils import get_top_layer_index

event = data['event']

Expand Down
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/tests/test_viewer_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from numpy.testing import assert_allclose

from jdaviz.configs.imviz.helper import get_top_layer_index
from jdaviz.utils import get_top_layer_index
from jdaviz.configs.imviz.tests.utils import BaseImviz_WCS_NoWCS


Expand Down

0 comments on commit 41df811

Please sign in to comment.