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