From ef386c043367b082b7f8a59d00d963e7daeb393c Mon Sep 17 00:00:00 2001 From: Volodymyr Savchenko Date: Thu, 17 Oct 2024 11:27:26 +0200 Subject: [PATCH] patch --- oda_api/data_products.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oda_api/data_products.py b/oda_api/data_products.py index a81809b3..bb9e8c6d 100644 --- a/oda_api/data_products.py +++ b/oda_api/data_products.py @@ -300,8 +300,8 @@ def from_fits_hdu(cls,hdu,name=None): r = cls(data=hdu.data, data_header={k:v for k, v in hdu.header.items()}, hdu_type=cls._map_hdu_type(hdu),name=name) - # this is needed to re-read the file - # r.to_fits_hdu() + # this is needed to re-read the file due to variable length file + r.to_fits_hdu() return r