[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] How can we use duaIterate.py in traci
|
Hi Zoltan,
this is not possible. We do not have any standardised way to interact with TraCI-controlled simulations in duaIterate.py. We do not have any standardised way to run a simulation with TraCI at all...
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] How can we use duaIterate.py in traci
Datum: 2023-11-23T09:21:58+0100
Von: "Zoltán Varga" <kistrefspam@xxxxxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>
Dear Mirko,
I would like to run a duaIterate with TraCi in a Jupyter notebook on a given smocfg. I am not sure if it is possible using TraCi. So instead of using a terminal to run the duaIterate I would like to run it in a Jupyter notebook.
Best regards,
Zoltan
Hi Zoltan,
can you please develop a bit more on what you want to achieve? Do you want to call duaIterate.py from another python script? This can be done like this (pseudo code):
import duaIterate
arguments = ["--foo", "bar"]
duaIterate.main(args=arguments)
Many of our scripts have a dedicated main function which can be called explicitly.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] How can we use duaIterate.py in traci
Datum: 2023-11-22T16:13:23+0100
Von: "Zoltán Varga via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Dear All,
I would like to ask you how we an implement duaIterate.py in traci. When I try to run this way
traci.start(["python", <PATH TO duaIterate.py>, "-n", <NETWORK FILE>, "-t", <TRIPS FILE>], port=<PORT NUMBER>)
the error message says that 'python' no such files or directory
Thank you for your answer in advance.
Best regards,
Zoltan