Skip to content

Commit

Permalink
Update oda_api/data_products.py
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyrss authored Oct 17, 2024
1 parent f4b858d commit 77c8dfc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion oda_api/data_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77c8dfc

Please sign in to comment.