Hi
if I run randomTrips.py manually in a command window, i see
harald> randomTrips.py -v -n net.net.xml --route-file routes_123.xml
calling /usr/local/share/sumo/bin/duarouter -n net.net.xml -r
trips.trips.xml --ignore-errors --begin 0 --end 3600 --no-step-log
--no-warnings -o routes_123.xml
Success.
This means inside randomTrips.py automatically duarouter is called. You
have nothing to do.
But duarouter is called with options to ignore-errors and not to issue
warnings.
Can you post the output of your randomTrips.py call?
Regards
Am 24.07.19 um 18:05 schrieb Hrishikesh Barad:
> Hi Harald, thanks a lot for the detailed response.
>
> Can you elaborate what do you mean by 'duarouter is called from
> randomTrips with --ignore-errors'? What do I need to add to my code to
> call duarouter within randomtrips loop?
>
>
> Thanks again,
>
>
> On Wed, Jul 24, 2019 at 9:34 AM Harald Schaefer <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi,
>
> here are some ideas:
> 1) might be the routes_abc.xml file is locked by the sumo-gui and
> is not overwritten (duarouter is called from randomTrips with
> --ignore-errors)
> 2) Have you tried your loop without the sumo_gui and checked that
> there are new route_files?
> 3) you can use in each loop a new route file name.
> 4) does the sumo-gui processes terminate?
> 5) Have you tried absolute filenames?
> 6) Some parameter (period, seed) in your call to randomTrips are
> given as int not strings
>
> Regards, Harald
>
> Am 23.07.19 um 22:53 schrieb Hrishikesh Barad:
>> Hi friends,
>>
>> As shown below in the code, I am trying to create a route file
>> ('route_abc.xml') using .net file ('simexp.net.xml') and an
>> additional file ('vdis100.add.xml') and then use the generated
>> 'route_abc.xml' to run the SUMO simulation. And before running
>> every simulation I just change the additional files (I have them
>> already prepared in a folder and they are named vdis10, vdis20
>> and so on)
>>
>> /#CODE START---------------/
>> /
>> /
>> /randomTrips.main(randomTrips.get_options([
>> '--net-file', 'simexp.net.xml',
>> '--min-distance', '1500',
>> '--period', 4,
>> '--binomial', '1', #uniform arrival
>> '--seed', 8123,
>> '--trip-attributes', 'type = \"vdis\" departLane =
>> \"random\" departSpeed = \"max\"',
>> '--additional-file', 'vdis100.add.xml',
>> '--route-file', 'route_abc.xml']))
>>
>> subprocess.Popen([/"C:\Program Files
>> (x86)\Eclipse\Sumo\\bin\sumo-gui.exe"/, "-c", "simexp.sumo.cfg",
>> "--log", "log_file.xml",
>> "-r", "route_abc.xml",
>> "--remote-port", str(now_port), "-S", "true", "-Q",
>> "true",
>> "--emission-output", "CoEMS19ms.xml",
>> "--tripinfo-output", "SummaryOP.xml",
>> "--fcd-output", "CoTrace19ms.xml",
>> "--output-prefix", op_path_file], stdout=sys.stdout,
>> stderr=sys.stderr)
>> /
>> /
>> /
>> /#CODE END--------------- /
>>
>> But for some reason, Randomtrips or duarouter is not generating a
>> new 'route_abc.xml' and the simulation keeps running the
>> simulation with the old 'route_abc.xml' which was already there
>> in the folder previously. Please help me what am I doing wrong
>> and how I can solve this.
>>
>> P.S: I have the SUMO 1.1.0 Installed
>>
>> --
>> Hrishikesh Barad
>> /Graduate Student/
>> Industrial & Systems Engineering, Rochester Institute of Technology
>> m: 585-629-4418
>> e: [email protected] <mailto:[email protected]>_
>> <https://www.facebook.com/Hrishiness>
>> <https://www.twitter.com/hrishiness>
>> <https://www.linkedin.com/in/hrishikeshbarad/>
>> <https://www.instagram.com/hrishiness>
>>
>>
>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected] <mailto:[email protected]>
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected] <mailto:[email protected]>
> To change your delivery options, retrieve your password, or
> unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> --
> Hrishikesh Barad
> /Graduate Student/
> Industrial & Systems Engineering, Rochester Institute of Technology
> m: 585-629-4418
> e: [email protected] <mailto:[email protected]>_
> <https://www.facebook.com/Hrishiness> <https://www.twitter.com/hrishiness>
> <https://www.linkedin.com/in/hrishikeshbarad/>
> <https://www.instagram.com/hrishiness>
>
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user