igmhub / picca

set of tools for continuum fitting, correlation function calculation, cosmological fits...
GNU General Public License v3.0
30 stars 22 forks source link

SDSS fix #1018

Closed armengau closed 1 year ago

armengau commented 1 year ago

When reading SDSS spectra (using the DR16Q catalog), using mode="spec" ie. files spec-plate-mjd[..].fits, I found for at least one file an issue reading the file, the HDUs were not there (no idea why) so picca crashed.

This commit is a simple workaround.

armengau commented 1 year ago

@alxogm May be interested in this PR