From f25cdb93f2e5fbb0e4ecbc20a29fc1e2871e9adc Mon Sep 17 00:00:00 2001 From: guillaume Date: Thu, 31 May 2018 17:39:34 -0400 Subject: [PATCH] renamed exit() to close() --- examples/python/pincell_depletion/restart_depletion.py | 2 +- openmc/statepoint.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/pincell_depletion/restart_depletion.py b/examples/python/pincell_depletion/restart_depletion.py index d96fe156c..a99565235 100644 --- a/examples/python/pincell_depletion/restart_depletion.py +++ b/examples/python/pincell_depletion/restart_depletion.py @@ -30,7 +30,7 @@ sp = openmc.StatePoint(statepoint) geometry = sp.summary.geometry # Close statepoint and summary files to be able to write over them -sp.exit() +sp.close() # Load previous depletion results previous_results = openmc.deplete.ResultsList("depletion_results.h5") diff --git a/openmc/statepoint.py b/openmc/statepoint.py index 03f53bbb0..fcc076b94 100644 --- a/openmc/statepoint.py +++ b/openmc/statepoint.py @@ -153,7 +153,7 @@ class StatePoint(object): if self._summary is not None: self._summary._f.close() - def exit(self): + def close(self): self.__exit__() @property