Skip to content

Commit 8257976

Browse files
committed
Changes, style, test fixes
1 parent ab18b1d commit 8257976

File tree

3 files changed

+73
-11
lines changed

3 files changed

+73
-11
lines changed

CHANGES.rst

Lines changed: 69 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,81 @@ simbad
2323
Service fixes and enhancements
2424
------------------------------
2525

26-
gaia
26+
linelists.cdms
27+
^^^^^^^^^^^^^^
28+
29+
- Add whole catalog retrieval, improve error messaging for unparseable lines,
30+
improve metadata catalog, and improve lookuptable behavior [#3173,#2901]
31+
32+
heasarc
33+
^^^^^^^
34+
35+
- Fix Heasarc.download_data for Sciserver. [#3183]
36+
37+
jplspec
38+
^^^^^^^
39+
40+
- minor improvement to lookuptable behavior [#3173,#2901]
41+
42+
mast
2743
^^^^
2844

29-
- Update DR4 retrieval_type names and include the new one EPOCH_ASTROMETRY_BRIGHT [#3207]
45+
- Retrieve data products from the Missions-MAST API with ``mast.MastMissions.get_product_list``. Retrieve unique data
46+
products only with ``mast.MastMissions.get_unique_product_list``. [#3155]
3047

31-
ipac.irsa
48+
- Filter data products retrieved from the Missions-MAST API with ``mast.MastMissions.filter_products``. [#3155]
49+
50+
- Download data products from the Missions-MAST API with ``mast.MastMissions.download_products``.
51+
Download a single data product using ``mast.MastMissions.download_file``. [#3155]
52+
53+
- Get the keyword corresponding to the dataset ID for a specific mission with ``mast.MastMissions.get_dataset_kwd``. [#3155]
54+
55+
- Handle coordinates that are not in the ICRS frame in query functions. [#3164]
56+
57+
mocserver
3258
^^^^^^^^^
3359

34-
- Adding the "servicetype" kwarg to ``list_collections`` to be able to list SIA
35-
and SSA collections separately. [#3200]
60+
- Switch to https instead of http for the default url (allows pyodide to use the
61+
module) [#3139]
62+
63+
- Add ``TimeMOC`` and ``STMOC`` as possible entries in ``MOCServer.query_region`` to
64+
allow temporal and space-time searches [#3139]
65+
66+
- ``return_moc`` now allows to ask for a Time-MOC or a Space-Time MOC rather than only
67+
Space-MOCs [#3139]
68+
69+
- Fix query by MOC that would write a file ``moc.fits`` where the method was executed in
70+
overwriting mode (potentially deleting data if there was a conflicting file) [#3139]
71+
72+
- [:warning: BREAKING] Returned tables now have a default list of fields instead of the
73+
> 130 columns returned previously. The full list of fields can be displayed with the
74+
new method ``MOCServer.list_fields`` [#3139]
75+
76+
- Add ``casesensitive`` parameter in the queries (previously, this was hardcoded
77+
to ``True``) [#3139]
78+
79+
- Add ``coordinate_system`` parameter to the queries to allow to filter on the different
80+
bodies or frames. The list of available space systems can be printed with the new
81+
method ``MOCServer.list_coordinates_systems`` [#3139]
82+
83+
- Add ``query_hips`` method, which is convenient to filter only Hierarchical progressive
84+
surveys [#3139]
85+
86+
- New parameter ``criteria`` in ``query_region`` and ``query_hips`` that has the same
87+
use than ``meta_data`` in the deprecated method ``find_datasets`` [#3139]
88+
89+
simbad
90+
^^^^^^
91+
92+
- Fixed adding a list of fluxes with the deprecated notation
93+
``Simbad.add_votable_fields("flux(U)", "flux(J)")`` [#3186]
94+
95+
- Support more of the 0.4.7 votable fields. Raise more significant error messages
96+
for the discontinued ones. [#3186]
97+
98+
- Fix the deprecated votable fields ``otype(V)`` and ``otype(S)`` [#3186]
3699

37-
- Adding support for asynchronous queries using the new ``async_job``
38-
keyword. [#3201]
100+
- Fixed non existing flux filters as votable fields would fail silently [#3186]
39101

40102
ipac.nexsci.nasa_exoplanet_archive
41103
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

astroquery/mast/missions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from requests import HTTPError, RequestException
2020

2121
from astroquery import log
22-
from astroquery.utils import commons, async_to_sync
22+
from astroquery.utils import async_to_sync
2323
from astroquery.utils.class_or_instance import class_or_instance
2424
from astroquery.exceptions import InvalidQueryError, MaxResultsWarning, InputWarning, NoResultsWarning
2525

astroquery/mast/tests/test_mast_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ def test_tesscut_get_sectors_mt(self):
12921292
assert sector_table['ccd'][0] == 1
12931293

12941294
error_noname = ("Please specify the object name or ID (as understood by the "
1295-
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) "
1295+
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons/app.html>`__) "
12961296
"of a moving target such as an asteroid or comet.")
12971297
error_nameresolve = f"Could not resolve {moving_target_name} to a sky position."
12981298
error_mt_coord = "Only one of moving_target and coordinates may be specified."
@@ -1375,7 +1375,7 @@ def test_tesscut_download_cutouts_mt(self, tmpdir):
13751375
assert os.path.isfile(row['Local Path'])
13761376

13771377
error_noname = ("Please specify the object name or ID (as understood by the "
1378-
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of "
1378+
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons/app.html>`__) of "
13791379
"a moving target such as an asteroid or comet.")
13801380
error_nameresolve = f"Could not resolve {moving_target_name} to a sky position."
13811381
error_mt_coord = "Only one of moving_target and coordinates may be specified."
@@ -1456,7 +1456,7 @@ def test_tesscut_get_cutouts_mt(self):
14561456
assert isinstance(cutout_hdus_list[0], fits.HDUList)
14571457

14581458
error_noname = ("Please specify the object name or ID (as understood by the "
1459-
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of "
1459+
"`JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons/app.html>`__) of "
14601460
"a moving target such as an asteroid or comet.")
14611461
error_nameresolve = f"Could not resolve {moving_target_name} to a sky position."
14621462
error_mt_coord = "Only one of moving_target and coordinates may be specified."

0 commit comments

Comments
 (0)