From 42e863fbf8daecd4504d1ad6280c6c37c8cf5663 Mon Sep 17 00:00:00 2001 From: Sergey Koposov Date: Thu, 22 Apr 2021 20:25:49 +0100 Subject: [PATCH] apparently astropy tries to accumulate all the comments in tables and then writing this to fits file fails --- py/minimint/mist_interpolator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/minimint/mist_interpolator.py b/py/minimint/mist_interpolator.py index 69ed3c7..9fe1a7a 100644 --- a/py/minimint/mist_interpolator.py +++ b/py/minimint/mist_interpolator.py @@ -60,6 +60,8 @@ def read_grid(eep_prefix, outp_prefix): tabs0.append(curt) tabs = atpy.vstack(tabs0) + if 'comments' in tabs.meta: + del tabs.meta['comments'] del tabs0 gc.collect() for k in list(tabs.columns):