Skip to content

Commit 17c79f9

Browse files
authored
Merge pull request #2247 from eerovaher/rm-download-file-list
Deprecate `astroquery/utils/download_file_list.py`
2 parents 8a60cd2 + a96365f commit 17c79f9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Infrastructure, Utility and Other Changes and Additions
2929
- Adding ``--alma-site`` pytest option for testing to have a control over
3030
which specific site to test. [#2224]
3131

32+
- The function ``astroquery.utils.download_list_of_fitsfiles()`` has been
33+
deprecated. [#2247]
34+
3235
utils.tap
3336
^^^^^^^^^
3437

astroquery/utils/download_file_list.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from io import StringIO
77

88
import astropy.io.fits as fits
9+
from astropy.utils.decorators import deprecated
910
from .commons import get_readable_fileobj
1011

1112
__all__ = ['download_list_of_fitsfiles']
@@ -26,6 +27,7 @@ def validify_filename(filestr):
2627
return filestr
2728

2829

30+
@deprecated('0.4.5')
2931
def download_list_of_fitsfiles(linklist, output_directory=None,
3032
output_prefix=None, save=False,
3133
overwrite=False, verbose=False,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pytest
2+
3+
from astropy.utils.exceptions import AstropyDeprecationWarning
4+
5+
from astroquery.utils.download_file_list import download_list_of_fitsfiles
6+
7+
8+
def test_download_list_of_fitsfiles_deprecation():
9+
with pytest.warns(AstropyDeprecationWarning):
10+
download_list_of_fitsfiles([])

0 commit comments

Comments
 (0)