diff --git a/oda_api/data_products.py b/oda_api/data_products.py index dad9a4d0..9182e116 100644 --- a/oda_api/data_products.py +++ b/oda_api/data_products.py @@ -643,7 +643,6 @@ def from_fits_file(cls,filename,ext=None,hdu_name=None,meta_data={},name=''): for hdu in hdul: if hdu.name == hdu_name: _hdul.append(hdu) - # this ensures that the hdu is read, necessary for the case when hdu_name is not found hdul=_hdul return cls(data_unit=[NumpyDataUnit.from_fits_hdu(h) for h in hdul],meta_data=meta_data,name=name)