Skip to content
Snippets Groups Projects
Commit 8ec3a55d authored by Marc Gay-Balmaz's avatar Marc Gay-Balmaz
Browse files

Clean and reformat

parent 9c2bd689
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ import itertools
import subprocess
import sys
from threading import Thread
from typing import Optional, Callable, Iterable, Mapping, Any
import numpy
......@@ -50,7 +49,6 @@ print("Arguments parsed")
print("Count = " + str(count))
print("Log : " + str(logarithmical))
# create each combination
param_combinations = []
for i in range(len(param_min)):
......@@ -59,11 +57,6 @@ for i in range(len(param_min)):
else:
act_values = numpy.arange(float(param_min[i]), float(param_max[i]), float(param_increment[i]))
param_combinations.append(act_values)
# for k in range(len(act_values)):
# if len(param_combinations) < k+1:
# param_combinations.append([])
# param_combinations[k].append(act_values[k])
# k += 1
combination = itertools.product(*param_combinations)
......@@ -77,7 +70,8 @@ class SimulationRunner(Thread):
def run(self) -> None:
for i in self.array:
for j in range(count):
subprocess.call(exec_cmd + " ".join(str(x) for x in i) + " > " + output_file_name + str(j) + "_" + "_".join(
subprocess.call(
exec_cmd + " ".join(str(x) for x in i) + " > " + output_file_name + str(j) + "_" + "_".join(
str(x) for x in i) + ".dat", shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment