From 33b57f588e741f1c9842de4c95165e1b8438c8fd Mon Sep 17 00:00:00 2001 From: young-x-skyee <79269182+young-x-skyee@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:01:26 +0100 Subject: [PATCH] Update plain.py Delete the variables after doing gridsearch on each function. Not sure if this totally fixes #314 since the execution time really varies. --- kymata/gridsearch/plain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kymata/gridsearch/plain.py b/kymata/gridsearch/plain.py index a8a8cd0e..4ba300c2 100755 --- a/kymata/gridsearch/plain.py +++ b/kymata/gridsearch/plain.py @@ -188,6 +188,8 @@ def do_gridsearch( else: raise NotImplementedError(channel_space) + del corrs, auto_corrs, function, latencies_ms, log_pvalues + return es