From 77c8dfcc28000cac5fffb11381278156037ee9c2 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Thu, 17 Oct 2024 11:40:15 +0200 Subject: [PATCH] Update oda_api/data_products.py --- oda_api/data_products.py | 1 - 1 file changed, 1 deletion(-) 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)