Skip to content

Commit

Permalink
Dont do too much on final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdonline committed Apr 22, 2024
1 parent ed5479f commit 7fcd3e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neurodamus/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,11 +1526,12 @@ def cleanup(self):
"""Have the compute nodes wrap up tasks before exiting.
"""
# MemUsage constructor will do MPI communications
print_mem_usage()
# print_mem_usage()

# Coreneuron runs clear the model before starting
if not SimConfig.use_coreneuron or SimConfig.simulate_model is False:
self.clear_model(avoid_creating_objs=True)
# TODO: Why explicitly cleanup structures before exiting?
# if not SimConfig.use_coreneuron or SimConfig.simulate_model is False:
# self.clear_model(avoid_creating_objs=True)

if SimConfig.delete_corenrn_data and not SimConfig.dry_run:
with timeit(name="Delete corenrn data"):
Expand Down Expand Up @@ -1567,7 +1568,6 @@ class Neurodamus(Node):
def __init__(
self, config_file,
auto_init=True,
cleanup_atexit=True,
logging_level=None,
**user_opts
):
Expand Down

0 comments on commit 7fcd3e9

Please sign in to comment.