Skip to content

Commit 50648fd

Browse files
committed
Changes, style, test fixes
1 parent a35fe9a commit 50648fd

File tree

3 files changed

+83
-4
lines changed

3 files changed

+83
-4
lines changed

CHANGES.rst

+79
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,85 @@ New Tools and Services
88
Service fixes and enhancements
99
------------------------------
1010

11+
<<<<<<< HEAD
12+
=======
13+
linelists.cdms
14+
^^^^^^^^^^^^^^
15+
16+
- Add whole catalog retrieval, improve error messaging for unparseable lines,
17+
improve metadata catalog, and improve lookuptable behavior [#3173,#2901]
18+
19+
heasarc
20+
^^^^^^^
21+
22+
- Fix Heasarc.download_data for Sciserver. [#3183]
23+
24+
jplspec
25+
^^^^^^^
26+
27+
- minor improvement to lookuptable behavior [#3173,#2901]
28+
29+
mast
30+
^^^^
31+
32+
- Retrieve data products from the Missions-MAST API with ``mast.MastMissions.get_product_list``. Retrieve unique data
33+
products only with ``mast.MastMissions.get_unique_product_list``. [#3155]
34+
35+
- Filter data products retrieved from the Missions-MAST API with ``mast.MastMissions.filter_products``. [#3155]
36+
37+
- Download data products from the Missions-MAST API with ``mast.MastMissions.download_products``.
38+
Download a single data product using ``mast.MastMissions.download_file``. [#3155]
39+
40+
- Get the keyword corresponding to the dataset ID for a specific mission with ``mast.MastMissions.get_dataset_kwd``. [#3155]
41+
42+
- Handle coordinates that are not in the ICRS frame in query functions. [#3164]
43+
44+
mocserver
45+
^^^^^^^^^
46+
47+
- Switch to https instead of http for the default url (allows pyodide to use the
48+
module) [#3139]
49+
50+
- Add ``TimeMOC`` and ``STMOC`` as possible entries in ``MOCServer.query_region`` to
51+
allow temporal and space-time searches [#3139]
52+
53+
- ``return_moc`` now allows to ask for a Time-MOC or a Space-Time MOC rather than only
54+
Space-MOCs [#3139]
55+
56+
- Fix query by MOC that would write a file ``moc.fits`` where the method was executed in
57+
overwriting mode (potentially deleting data if there was a conflicting file) [#3139]
58+
59+
- [:warning: BREAKING] Returned tables now have a default list of fields instead of the
60+
> 130 columns returned previously. The full list of fields can be displayed with the
61+
new method ``MOCServer.list_fields`` [#3139]
62+
63+
- Add ``casesensitive`` parameter in the queries (previously, this was hardcoded
64+
to ``True``) [#3139]
65+
66+
- Add ``coordinate_system`` parameter to the queries to allow to filter on the different
67+
bodies or frames. The list of available space systems can be printed with the new
68+
method ``MOCServer.list_coordinates_systems`` [#3139]
69+
70+
- Add ``query_hips`` method, which is convenient to filter only Hierarchical progressive
71+
surveys [#3139]
72+
73+
- New parameter ``criteria`` in ``query_region`` and ``query_hips`` that has the same
74+
use than ``meta_data`` in the deprecated method ``find_datasets`` [#3139]
75+
76+
simbad
77+
^^^^^^
78+
79+
- Fixed adding a list of fluxes with the deprecated notation
80+
``Simbad.add_votable_fields("flux(U)", "flux(J)")`` [#3186]
81+
82+
- Support more of the 0.4.7 votable fields. Raise more significant error messages
83+
for the discontinued ones. [#3186]
84+
85+
- Fix the deprecated votable fields ``otype(V)`` and ``otype(S)`` [#3186]
86+
87+
- Fixed non existing flux filters as votable fields would fail silently [#3186]
88+
89+
>>>>>>> 1b2123ae (Changes, style, test fixes)
1190
ipac.nexsci.nasa_exoplanet_archive
1291
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1392

astroquery/mast/missions.py

+1-1
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def test_tesscut_get_sectors_mt(self):
12621262
assert sector_table['ccd'][0] == 1
12631263

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

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

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

0 commit comments

Comments
 (0)