Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Appropriate way to have SUMO Run Multiple Times

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 <vincentobiako@xxxxxxxxx>:

Sorry, but just for some context the above message was referring to if the external program was a python script.

 

Sent from Mail for Windows

 

From: Ifezue Obiako
Sent: Wednesday, October 27, 2021 2:38 PM
To: Sumo project User discussions
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 <namdre.sumo@xxxxxxxxx> 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 <vincentobiako@xxxxxxxxx>:

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 for Windows

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top