I have a simulation setup which generates a csv
containing the results of the simulation. I want to run this script multiple times and get multiple csv's
as a result of each simulation.
I tried:
import os
sim_no = 1
for i in range(2):
os.system("python test_sim.py")
sim_no = sim_no 1
and then importing the sim_no variable to my simulation script but that creates problems.
CodePudding user response:
Import your test_sim file instead of trying to execute it