Skip to content

Commit d57559a

Browse files
committed
TST: updating tests and files, new vot is regression for issue 3301
1 parent 5db2092 commit d57559a

File tree

4 files changed

+149
-150
lines changed

4 files changed

+149
-150
lines changed

astroquery/imcce/core.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,13 @@ def _parse_result(self, response, *, verbose=False):
622622

623623
if self._get_raw_response:
624624
return response.text
625-
626-
results = QTable.read(BytesIO(response.content), format='votable')
625+
import warnings
626+
from astropy.utils.exceptions import AstropyUserWarning
627+
with warnings.catch_warnings():
628+
# We deal with RA/DEC manually
629+
warnings.filterwarnings("ignore", category=AstropyUserWarning,
630+
message=r"column ra|(column de) has a unit but is kept as a MaskedColumn")
631+
results = QTable.read(BytesIO(response.content), format='votable')
627632

628633
# convert coordinates to degrees
629634
coo = SkyCoord(ra=results['ra'], dec=results['de'],

0 commit comments

Comments
 (0)