You could either run your other script as a separate process ( https://docs.python.org/3/library/subprocess.html) or call it's functions directly (i.e name_of_python_file.run() )
Am Do., 28. Okt. 2021 um 02:26 Uhr schrieb vincentobiako < [email protected]>: > Sorry, but just for some context the above message was referring to if the > external program was a python script. > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > *From: *Ifezue Obiako <[email protected]> > *Sent: *Wednesday, October 27, 2021 2:38 PM > *To: *Sumo project User discussions <[email protected]> > *Subject: *Re: [sumo-user] Appropriate way to have SUMO Run Multiple Times > > > > Jakob > > > > Would the program look something like this: > > > > *import *traci > > *from *sumolib *import *checkBinary > > *import* argparse > > *import *name_of_python_file > > > > for i in range (10): > > exec(name_of_python_file) > > > > For those not fluent in Python, is there some form of standardized Python > scripting template or format for allowing the repeat of simulation runs? > > > > Thank you > > Ifezue > > > > > > On Wed, Oct 27, 2021 at 1:13 AM Jakob Erdmann <[email protected]> > wrote: > > You need some sort of external scripting (i.e. a batch file, shell script > or python program that starts the sumo process repeatedly). > > > > Am Mo., 25. Okt. 2021 um 22:08 Uhr schrieb vincentobiako < > [email protected]>: > > Hello Everyone > > > > I am confused as to what is the appropriate way to get SUMO to run > multiple simulation runs? Is this done through a command line > argument/option or through other means? > > > > Thank you in advance for the help > > Ifezue > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
