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]> 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] <[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 [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visithttps://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 > -- Hrishikesh Barad *Graduate Student* Industrial & Systems Engineering, Rochester Institute of Technology m: 585-629-4418 e: *[email protected] <[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
