Skip to content
Snippets Groups Projects
Commit 9690273b authored by David Hendriks's avatar David Hendriks
Browse files

made it so that the file contains the name testcase

parent 9e2a8bca
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ import json ...@@ -3,6 +3,7 @@ import json
import time import time
import pickle import pickle
import sys import sys
import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -112,7 +113,7 @@ test_pop.set( ...@@ -112,7 +113,7 @@ test_pop.set(
res = test_pop.evolve_population_comparison( res = test_pop.evolve_population_comparison(
parse_function, amt=int(amt_systems), nodes=int(amt_nodes) parse_function, amt=int(amt_systems), nodes=int(amt_nodes)
) )
with open("comparison_result.dat", "a") as f: with open("comparison_result_{}.dat".format(name_testcase), "a") as f:
f.write(str(res) + "\n") f.write(str(res) + "\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment