Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add delete method

  • Loading branch information...
commit f5827bf4ef2ad962015cd73cfa3a411c10d0a1c2 1 parent 437e604
@bmcage authored
Showing with 8 additions and 2 deletions.
  1. +1 −1  scikits/odes/__init__.py
  2. +6 −0 scikits/odes/dae.py
  3. +1 −1  setup.py
View
2  scikits/odes/__init__.py
@@ -13,4 +13,4 @@
test = Tester().test
except:
#testing could not be loaded, old numpy version
- pass
+ pass
View
6 scikits/odes/dae.py
@@ -335,6 +335,12 @@ def step(self, t, y_retn, yp_retn = None):
"""
return self._integrator.step(t, y_retn, yp_retn)
+ def __del__(self):
+ """
+ Clean up what is needed
+ """
+ del self._integrator
+
#------------------------------------------------------------------------------
# DAE integrators
#------------------------------------------------------------------------------
View
2  setup.py
@@ -42,4 +42,4 @@ def setup_package():
return
if __name__ == '__main__':
- setup_package()
+ setup_package()
Please sign in to comment.
Something went wrong with that request. Please try again.