Skip to content

Commit 63a573e

Browse files
committed
2 parents af60f91 + 98e9537 commit 63a573e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+590
-1566
lines changed

.github/workflows/ci_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212
schedule:
1313
# run every Monday at 5am UTC
1414
- cron: '0 5 * * 1'

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ main ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ main ]
2020

2121
jobs:
2222
analyze:

CHANGES.rst

Lines changed: 122 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,111 @@
1-
0.4.2 (unreleased)
1+
0.4.3 (unreleased)
22
==================
33

4+
New Tools and Services
5+
----------------------
6+
7+
48
Service fixes and enhancements
59
------------------------------
610

11+
12+
13+
0.4.2 (2021-05-14)
14+
==================
15+
16+
New Tools and Services
17+
----------------------
18+
719
cds.hips2fits
820
^^^^^^^^^^^^^
921

10-
- HIPS2fits is a service providing nice fits/jpg/png image cutouts from a HiPS + a WCS. It can now be queried from python [#1734]
22+
- New module HIPS2fits to provide access to fits/jpg/png image cutouts from a
23+
HiPS + a WCS. [#1734]
1124

12-
13-
esa/iso
25+
esa.iso
1426
^^^^^^^
1527

16-
- New module to access ESA ISO mission [#1914]
28+
- New module to access ESA ISO mission. [#1914]
1729

18-
ESASky
30+
esa.xmm_newton
31+
^^^^^^^^^^^^^^
32+
33+
- New method ``get_epic_images`` is added to extract EPIC images from
34+
tarballs. [#1759]
35+
36+
- New method ``get_epic_metadata`` is added to download EPIC sources
37+
metadata. [#1814]
38+
39+
mast
1940
^^^^
2041

21-
- All ESASky spectra now accessible. [#1909]
42+
- Added Zcut functionality to astroquery [#1911]
2243

23-
- Updated ESASky module for version 3.5 of ESASky backend. [#1858]
44+
svo_fps
45+
^^^^^^^
2446

25-
- Added row limit parameter for map queries. [#1858]
47+
- New module to access the Spanish Virtual Observatory Filter Profile List. [#1498]
2648

2749

28-
irsa
50+
Service fixes and enhancements
51+
------------------------------
52+
53+
alma
2954
^^^^
3055

31-
- Used more specific exceptions in IRSA. [#1854]
56+
- The archive query interface has been deprecated in favour of
57+
VirtualObservatory (VO) services such as TAP, ObsCore etc. The alma
58+
library has been updated accordingly. [#1689]
3259

60+
- ALMA queries using string representations will now convert to appropriate
61+
coordinates before being sent to the server; previously they were treated as
62+
whatever unit they were presented in. [#1867]
3363

34-
mast
35-
^^^^
64+
- Download mechanism uses the ALMA Datalink service that allows exploring and
65+
downloading entire tarball package files or just part of their
66+
content. [#1820]
3667

37-
- Added ``Observations.download_file`` method to download a single file from MAST given an input
38-
data URI. [#1825]
39-
- Added case for passing a row to ``Observations.download_file` [#1881]
40-
- Removed deprecated ``Observations.get_hst_s3_uris()``, ``Observations.get_hst_s3_uri()``,
41-
``Core.get_token()``, ``Core.enable_s3_hst_dataset()``, ``Core.disable_s3_hst_dataset()`` and
42-
variables obstype and silent [#1884]
43-
- Added Zcut functionality to astroquery [#1911]
44-
- Fixed error causing empty products passed to ``Observations.get_product_list()`` to yeild a
45-
non-empty result. [#1921]
46-
- Changed AWS cloud access from RequesterPays to anonymous acces [#1980]
47-
- Fixed error with download of Spitzer data [#1994]
68+
- Fixed bug in ``get_data_info`` to ensure relevant fields are strings. [#2022]
4869

49-
esa/hubble
70+
esa.esasky
71+
^^^^^^^^^^
72+
73+
- All ESASky spectra now accessible. [#1909]
74+
75+
- Updated ESASky module for version 3.5 of ESASky backend. [#1858]
76+
77+
- Added row limit parameter for map queries. [#1858]
78+
79+
esa.hubble
5080
^^^^^^^^^^
5181

5282
- Module added to query eHST TAP based on a set of specific criteria and
5383
asynchronous jobs are now supported. [#1723]
5484

55-
esa/xmm_newton
56-
^^^^^^^^^^^^^^
85+
gaia
86+
^^^^
87+
- Fixed RA/dec table edit capability. [#1784]
5788

58-
- new method ``get_epic_images`` is added to extract EPIC images from
59-
tarballs. [#1759]
89+
- Changed file names handling when downloading data. [#1784]
6090

61-
esasky
91+
- Improved code to handle bit data type. [#1784]
92+
93+
- Prepared code to handle new datalink products. [#1784]
94+
95+
gemini
6296
^^^^^^
6397

64-
- Converted unittest styled tests to pytest. [#1862]
98+
- ``login()`` method to support authenticated sessions to the GOA. [#1780]
6599

100+
- ``get_file()`` to support downloading files. [#1780]
66101

67-
Gemini
68-
^^^^^^
102+
- fix syntax error in ``query_criteria()`` [#1823]
69103

70-
- login() support for authenticated sessions to the GOA [#1778]
71-
- get_file() support for downloading files [#1778]
72-
- fix syntax error in query_criteria() [#1823]
104+
- If QA and/or engineering parameters are explicitly passed, remove the
105+
defaults of ``notengineering`` and/or ``NotFail``. [#2000]
73106

107+
- Smarter defaulting of radius to None unless coordinates are specified, in
108+
which case defaults to 0.3 degrees. [#1995]
74109

75110
heasarc
76111
^^^^^^^
@@ -80,62 +115,81 @@ heasarc
80115
- Add alternative instance of HEASARC Server, maintainer by
81116
INTEGRAL Science Data Center [#1988]
82117

118+
irsa
119+
^^^^
120+
121+
- Used more specific exceptions in IRSA. [#1854]
83122

84-
SVO FPS
123+
jplsbdb
85124
^^^^^^^
86125

87-
- Module added to access the Spanish Virtual Observatory Filter Profile List [#1498]
126+
- Returns astropy quantities, rather than scaled units. [#2011]
127+
128+
lcogt
129+
^^^^^
130+
131+
- Module has been removed after having been defunct due to upstream API
132+
refactoring a few years ago. [#2071]
133+
134+
mast
135+
^^^^
136+
137+
- Added ``Observations.download_file`` method to download a single file from
138+
MAST given an input data URI. [#1825]
139+
140+
- Added case for passing a row to ``Observations.download_file``. [#1881]
141+
142+
- Removed deprecated methods: ``Observations.get_hst_s3_uris()``,
143+
``Observations.get_hst_s3_uri()``, ``Core.get_token()``,
144+
``Core.enable_s3_hst_dataset()``, ``Core.disable_s3_hst_dataset()``; and
145+
parameters: ``obstype`` and ``silent``. [#1884]
146+
147+
- Fixed error causing empty products passed to ``Observations.get_product_list()``
148+
to yeild a non-empty result. [#1921]
149+
150+
- Changed AWS cloud access from RequesterPays to anonymous acces. [#1980]
151+
152+
- Fixed error with download of Spitzer data. [#1994]
153+
154+
sdss
155+
^^^^
156+
157+
- Fix validation of field names. [#1790]
88158

89-
Splatalogue
159+
splatalogue
90160
^^^^^^^^^^^
91161

92-
- The Splatalogue ID querying is now properly cached in the `astropy` cache
93-
directory (Issue [#423]) The scraping function has also been updated to reflect
162+
- The Splatalogue ID querying is now properly cached in the astropy cache
163+
directory. The scraping function has also been updated to reflect
94164
the Splatalogue webpage. [#1772]
95165

96166
- The splatalogue URL has changed to https://splatalogue.online, as the old site
97167
stopped functioning in September 2020 [#1817]
98168

99-
UKIDSS
100-
^^^^^^
101-
102-
- Updated to ``UKIDSSDR11PLUS`` as the default version [#1767]
103-
104-
utils/tap
169+
ukidss
105170
^^^^^^
106171

107-
- Converted unittest styled tests to pytest. [#1862]
108-
109-
alma
110-
^^^^
172+
- Updated to ``UKIDSSDR11PLUS`` as the default data release. [#1767]
111173

112-
- The archive query interface has been deprecated in favour of
113-
VirtualObservatory (VO) services such as TAP, ObsCore etc. The alma
114-
library has been updated accordingly. [#1689]
115-
- ALMA queries using string representations will now convert to appropriate
116-
coordinates before being sent to the server; previously they were treated as
117-
whatever unit they were presented in. [#1867]
118-
- Download mechanism uses the ALMA Datalink service that allows exploring and
119-
downloading entire tarball package files or just part of their content. [#1820]
174+
vamdc
175+
^^^^^
120176

121-
gaia
122-
^^^^
123-
- Fixed RA/dec table edit capability. [#1784]
124-
- Changed file names handling when downloading data. [#1784]
125-
- Improved code to handle bit data type. [#1784]
126-
- Prepared code to handle new datalink products. [#1784]
177+
- Deprecate module due to upstream library dependence and compability
178+
issues. [#2070]
127179

128-
esa.xmm_newton
129-
^^^^^^^^^^^^^^
180+
vizier
181+
^^^^^^
130182

131-
- Added new function to download EPIC sources metadate. [#1814]
183+
- Refactor module to support list of coordinates as well as several fixes to
184+
follow changes in upstream API. [#2012]
132185

133186

134187
Infrastructure, Utility and Other Changes and Additions
135188
-------------------------------------------------------
136189

137190
- HTTP requests and responses can now be logged when the astropy
138191
logger is set to level "DEBUG" and "TRACE" respectively. [#1992]
192+
139193
- Astroquery and all its modules now uses a logger similar to Astropy's. [#1992]
140194

141195

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:target: https://github.com/astropy/astroquery/actions?query=workflow%3ACI
1313
:alt: Github Actions CI Status
1414

15-
.. image:: https://codecov.io/gh/astropy/astroquery/branch/master/graph/badge.svg
15+
.. image:: https://codecov.io/gh/astropy/astroquery/branch/main/graph/badge.svg
1616
:target: https://codecov.io/gh/astropy/astroquery
1717
:alt: Coverage results
1818

@@ -67,11 +67,11 @@ or pip installed:
6767
6868
$ pip install --pre astroquery
6969
70-
and the 'bleeding edge' master version:
70+
and the 'bleeding edge' main version:
7171

7272
.. code-block:: bash
7373
74-
$ pip install https://github.com/astropy/astroquery/archive/master.zip
74+
$ pip install https://github.com/astropy/astroquery/archive/main.zip
7575
7676
or cloned and installed from source:
7777

@@ -96,7 +96,7 @@ and `query_region`.
9696
To report bugs and request features, please use the issue tracker. Code
9797
contributions are very welcome, though we encourage you to follow the `API`_
9898
and `contributing guidelines
99-
<https://github.com/astropy/astroquery/blob/master/CONTRIBUTING.rst>`_ as much
99+
<https://github.com/astropy/astroquery/blob/main/CONTRIBUTING.rst>`_ as much
100100
as possible.
101101

102102
List of Modules
@@ -182,8 +182,8 @@ Additional Links
182182
Maintained by `Adam Ginsburg`_ and `Brigitta Sipocz <https://github.com/bsipocz>`_ (`[email protected]`_)
183183

184184

185-
.. _Download Development ZIP: https://github.com/astropy/astroquery/zipball/master
186-
.. _Download Development TAR: https://github.com/astropy/astroquery/tarball/master
185+
.. _Download Development ZIP: https://github.com/astropy/astroquery/zipball/main
186+
.. _Download Development TAR: https://github.com/astropy/astroquery/tarball/main
187187
.. _Download Stable ZIP: https://github.com/astropy/astroquery/zipball/stable
188188
.. _Download Stable TAR: https://github.com/astropy/astroquery/tarball/stable
189189
.. _View on Github: https://github.com/astropy/astroquery/

astroquery/_astropy_init.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,9 @@
2525

2626
if not _ASTROPY_SETUP_: # noqa
2727
import os
28-
from warnings import warn
29-
from astropy.config.configuration import (
30-
update_default_config,
31-
ConfigurationDefaultMissingError,
32-
ConfigurationDefaultMissingWarning)
3328

3429
# Create the test function for self test
3530
from astropy.tests.runner import TestRunner
3631
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
3732
test.__test__ = False
3833
__all__ += ['test']
39-
40-
# add these here so we only need to cleanup the namespace at the end
41-
config_dir = None
42-
43-
if not os.environ.get('ASTROPY_SKIP_CONFIG_UPDATE', False):
44-
config_dir = os.path.dirname(__file__)
45-
config_template = os.path.join(config_dir, __package__ + ".cfg")
46-
if os.path.isfile(config_template):
47-
try:
48-
update_default_config(
49-
__package__, config_dir, version=__version__)
50-
except TypeError as orig_error:
51-
try:
52-
update_default_config(__package__, config_dir)
53-
except ConfigurationDefaultMissingError as e:
54-
wmsg = (e.args[0] +
55-
" Cannot install default profile. If you are "
56-
"importing from source, this is expected.")
57-
warn(ConfigurationDefaultMissingWarning(wmsg))
58-
del e
59-
except Exception:
60-
raise orig_error

astroquery/alma/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ def get_data_info(self, uids, expand_tarfiles=False,
634634
result = vstack([result, expanded_result], join_type='exact')
635635
else:
636636
result = result[np.logical_or(np.core.defchararray.find(
637-
result['semantics'], DATALINK_SEMANTICS) == -1,
638-
result['content_type'] != DATALINK_FILE_TYPE)]
637+
result['semantics'].astype(str), DATALINK_SEMANTICS) == -1,
638+
result['content_type'].astype(str) != DATALINK_FILE_TYPE)]
639639

640640
return result
641641

astroquery/alma/tests/setup_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66

77
def get_package_data():
8-
paths = [os.path.join('data', '*.txt')]
8+
paths = [os.path.join('data', '*.txt'), os.path.join('data', '*.xml')]
99
return {'astroquery.alma.tests': paths}

0 commit comments

Comments
 (0)