Skip to content

Commit d6dbc7c

Browse files
committed
Adding warning about non-functioning module. Remove module in 6months
1 parent 5ac1834 commit d6dbc7c

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

astroquery/nrao/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
"""
55
from astropy import config as _config
66

7+
import warnings
8+
9+
# Remove module altogether if API update is not done in 6 months (2022-11-02).
10+
warnings.warn("The legacy NRAO archive this module uses has been retired causing astroquery.nrao to be "
11+
"broken. We will remove this exception once the sufficient updates are done to use the new "
12+
"NRAO archive API.")
13+
714

815
class Conf(_config.ConfigNamespace):
916
"""

astroquery/nrao/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from io import BytesIO
1111

12-
import numpy as np
1312
import astropy.units as u
1413
import astropy.io.votable as votable
1514
from astropy import coordinates

astroquery/nrao/tests/test_nrao.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
import astropy.units as u
88
from astropy.table import Table
99

10+
# Skip tests in this file until the new API is implemented:
11+
# https://github.com/astropy/astroquery/issues/2316
12+
pytest.skip(allow_module_level=True)
13+
1014
from ... import nrao
1115
from astroquery.utils.mocks import MockResponse
1216
from ...utils import commons

astroquery/nrao/tests/test_nrao_remote.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
from astropy.table import Table
77
from astropy import units as u
88

9+
# Skip tests in this file until the new API is implemented:
10+
# https://github.com/astropy/astroquery/issues/2316
11+
pytest.skip(allow_module_level=True)
12+
913
from astroquery.utils.commons import ASTROPY_LT_4_1
1014
from ... import nrao
1115

docs/nrao/nrao.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. doctest-skip-all
2+
.. # Skip tests in this file until the new API is implemented:
3+
.. # https://github.com/astropy/astroquery/issues/2316
4+
15
.. _astroquery.nrao:
26

37
********************************

0 commit comments

Comments
 (0)