Skip to content

Commit 04c812e

Browse files
committed
Use wcs_info_str in HighLevelWCSWrapper
fixes #10116
1 parent a382d92 commit 04c812e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎astropy/wcs/wcsapi/high_level_wcs_wrapper.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .high_level_api import HighLevelWCSMixin
2-
3-
from . import BaseLowLevelWCS
2+
from .low_level_api import BaseLowLevelWCS
3+
from .utils import wcs_info_str
44

55
__all__ = ['HighLevelWCSWrapper']
66

@@ -75,3 +75,9 @@ def _as_mpl_axes(self):
7575
See `~astropy.wcs.wcsapi.BaseLowLevelWCS._as_mpl_axes`
7676
"""
7777
return self.low_level_wcs._as_mpl_axes()
78+
79+
def __str__(self):
80+
return wcs_info_str(self.low_level_wcs)
81+
82+
def __repr__(self):
83+
return f"{object.__repr__(self)}\n{str(self)}"

0 commit comments

Comments
 (0)