From 405d3aa0a689fdb159d75befef6d9fc78f0d093e Mon Sep 17 00:00:00 2001 From: raychew Date: Tue, 11 Jun 2024 21:05:14 +0200 Subject: [PATCH] there is a memory leak somewhere; I think it's because I am not closing the data files --- src/io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io.py b/src/io.py index 42853f5..a4f46b4 100644 --- a/src/io.py +++ b/src/io.py @@ -498,6 +498,9 @@ def __do_interp_lon_1D(self, dirs, fns, cnt_lon, lon_cnt, n_col, lon_idx_rng): new_lon = np.linspace(new_min, new_max, new_sz) + merit_dat.close() + rema_dat.close() + return new_lon