From 6e6195969cf5395ec143704f21e64954e5bfbfca Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Wed, 3 Aug 2011 18:50:42 +0000 Subject: [PATCH] delete sim after usage (does not solve Python memory problems) --- scripts/obsutils.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/obsutils.py b/scripts/obsutils.py index 4472290..ed9404e 100755 --- a/scripts/obsutils.py +++ b/scripts/obsutils.py @@ -116,6 +116,9 @@ def sim(obs, log=False, debug=True, seed=0, nbins=0, binsz=0.05, npix=200): # (the ctobssim object will go out of scope one the function is # left) obs = sim.obs().copy() + + # Delete the simulation + del sim # Return observation container return obs -- libgit2 0.21.4