Skip to content
Snippets Groups Projects
Commit fb402b75 authored by AxelCarayon's avatar AxelCarayon
Browse files

added a script to run multiple times

parent 22d4e53b
No related branches found
No related tags found
No related merge requests found
File added
from outputToGraph import run_java_jar, make_diagram, JAR_LOCATION,OUTPUT_FILE_LOCATION
import sys
import shutil
def save_csv(i) :
old_location = OUTPUT_FILE_LOCATION
new_location = f"src/main/resources/output{i}.csv"
shutil.move(old_location,new_location)
if ((len(sys.argv) > 1)):
for i in range (int(sys.argv[1])) :
run_java_jar(JAR_LOCATION)
make_diagram(OUTPUT_FILE_LOCATION)
save_csv(i)
else :
print("Usage : python3 multipleRuns.py <nb of runs>")
\ No newline at end of file
......@@ -82,5 +82,6 @@ def edit_yaml(key, value):
# copyToOutputFolder(f"output{i}.csv")
# makeDiagram(f"{OUTPUT_FOLDER}/output{i}.csv")
run_java_jar(JAR_LOCATION)
make_diagram(OUTPUT_FILE_LOCATION)
if __name__ == "__main__":
run_java_jar(JAR_LOCATION)
make_diagram(OUTPUT_FILE_LOCATION)
......@@ -19,4 +19,10 @@ public class SuceptibleSEIRSState extends SEIRSState {
public String toString() {
return SUCEPTIBLE;
}
public static void main(String[] args) {
float i = 4.12f;
int i2 = (int) i;
System.out.println((float)i2);
}
}
src/main/resources/output.png

56.4 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment