Skip to content

Commit eecdfd6

Browse files
committed
update changelog; caught some minor bugs
1 parent ccc89c2 commit eecdfd6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ New Tools and Services
88
Service fixes and enhancements
99
------------------------------
1010

11+
sdss
12+
^^^^
13+
14+
- Fix URL for individual spectrum file download in recent data releases. [#2214]
1115

1216
Infrastructure, Utility and Other Changes and Additions
1317
-------------------------------------------------------

astroquery/sdss/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def get_spectra_async(self, coordinates=None, radius=2. * u.arcsec,
585585
run2d = row['run2d'].decode()
586586
else:
587587
run2d = row['run2d']
588-
if data_release > 15:
588+
if data_release > 15 and run2d not in ('26', '103', '104'):
589589
linkstr.replace('/spectra/', '/spectra/full/')
590590
link = linkstr.format(
591591
base=conf.sas_baseurl, dr=data_release,

astroquery/sdss/tests/test_sdss_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_images_timeout(self):
4141
def test_sdss_spectrum(self, dr):
4242
xid = sdss.SDSS.query_region(self.coords, spectro=True, data_release=dr)
4343
assert isinstance(xid, Table)
44-
sp = sdss.SDSS.get_spectra(matches=xid)
44+
sp = sdss.SDSS.get_spectra(matches=xid, data_release=dr)
4545

4646
def test_sdss_spectrum_mjd(self):
4747
sp = sdss.SDSS.get_spectra(plate=2345, fiberID=572)

0 commit comments

Comments
 (0)