From fa6eccca989a1a81e23bee0c863b2de19749c3b3 Mon Sep 17 00:00:00 2001 From: Frithjof Gressmann Date: Fri, 31 May 2024 11:49:45 -0500 Subject: [PATCH] Remove dynamic runner --- src/miv_simulator/interface/synapse_forest.py | 5 ----- src/miv_simulator/simulator/generate_synapse_forest.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/miv_simulator/interface/synapse_forest.py b/src/miv_simulator/interface/synapse_forest.py index 7fb0d4c..4bc91ef 100644 --- a/src/miv_simulator/interface/synapse_forest.py +++ b/src/miv_simulator/interface/synapse_forest.py @@ -51,11 +51,6 @@ def dispatch_code( self.__call__(cmds.append) lines = [" ".join(cmd) for cmd in cmds] - if isinstance(python, str): - runner, _, python = python.rpartition(" ") - if runner: - lines = [runner + " " + line for line in lines] - cache_marker = self.local_directory("cached") lines.append(f'echo "finished" > {cache_marker}') diff --git a/src/miv_simulator/simulator/generate_synapse_forest.py b/src/miv_simulator/simulator/generate_synapse_forest.py index 28bc2ff..8f33870 100644 --- a/src/miv_simulator/simulator/generate_synapse_forest.py +++ b/src/miv_simulator/simulator/generate_synapse_forest.py @@ -46,7 +46,7 @@ def generate_synapse_forest( _bin_check("neurotrees_import") _run( [ - "neurotrees_import", + "mpirun -n 1 neurotrees_import", population, tree_output_filepath, morphology, @@ -83,7 +83,7 @@ def generate_synapse_forest( _bin_check("neurotrees_copy") _run( [ - "neurotrees_copy", + "mpirun -n 1 neurotrees_copy", "--fill", "--output", output_filepath,