Skip to content

Commit a6c898d

Browse files
committed
Restore a couple of constants that got los in the refactor
1 parent b13072f commit a6c898d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

astrowidgets/interface_definition.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
from typing import Protocol, runtime_checkable, Any
22
from abc import abstractmethod
33

4+
# Allowed locations for cursor display
5+
ALLOWED_CURSOR_LOCATIONS = ['top', 'bottom', None]
6+
7+
# List of marker names that are for internal use only
8+
RESERVED_MARKER_SET_NAMES = ['all']
9+
410

511
@runtime_checkable
612
class ImageViewerInterface(Protocol):

astrowidgets/tests/test_api_ginga.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
from ginga.ColorDist import ColorDistBase
1212

13-
from astrowidgets.ginga import ImageWidget, ALLOWED_CURSOR_LOCATIONS
14-
from astrowidgets.interface_definition import ImageViewerInterface
13+
from astrowidgets.ginga import ImageWidget
14+
from astrowidgets.interface_definition import ImageViewerInterface, ALLOWED_CURSOR_LOCATIONS
1515

1616

1717
def test_consistent_interface():

astrowidgets/tests/test_ginga_widget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from astropy.nddata import CCDData
88
from astropy.coordinates import SkyCoord
99

10-
from ..ginga import ImageWidget, RESERVED_MARKER_SET_NAMES
10+
from ..ginga import ImageWidget
11+
from astrowidgets.interface_definition import RESERVED_MARKER_SET_NAMES
1112

1213

1314
def _make_fake_ccd(with_wcs=True):

0 commit comments

Comments
 (0)