Hi, you need to put quotation marks around the command because you have whitespace in the path: > python "%sumo_home%\tools\routeSampler.py" -c rscfg.txt
Best regards, Michael Am 28.11.21 um 13:32 schrieb Brandon Cedric Patangan via sumo-user: > Hi Jakob, > > Thank you so much for the explanation! I've tried running this command: > > C:\Users\Cedric\Sumo\2021-11-24-20-35-01> python > %sumo_home%\tools\routeSampler.py -c rscfg.txt > > but unfortunately, it simply returns "python: can't open file > 'C:\\Program': [Errno 2] No such file or directory". Does this mean that > the directory is somehow misconfigured? I just ran it from the command > line directly in the folder containing the osm simulation, and the file > rscfg.txt is already inside that folder, like was done in the conference > video. > > Many thanks, > Brandon > > On Thu, Nov 25, 2021 at 2:53 AM Jakob Erdmann <[email protected] > <mailto:[email protected]>> wrote: > > routeSampler.py is a python tool which must be run on the command line: > > %sumo_home%\tools\routeSampler.py -c rscfg.txt > or > > %sumo_home%\tools\routeSampler.py --edgedata-files edgecounts.xml > --route-files vehroutes.xml --output-file out.rou.xml > > See > https://sumo.dlr.de/docs/Tools/index.html#how_to_use_python_tools > <https://sumo.dlr.de/docs/Tools/index.html#how_to_use_python_tools> > > Am Mi., 24. Nov. 2021 um 16:48 Uhr schrieb Brandon Cedric Patangan > via sumo-user <[email protected] <mailto:[email protected]>>: > > Hi again, sorry to send another message. I used Notepad ++ to > run a text file named rscfg.txt where I typed in the same > configuration as in theconference tutorial > <https://www.youtube.com/watch?v=aiOQbaB-pWo&feature=youtu.be>: > > image.png > > However when I try to run it using the "Run" Windows batch file, > I get the following error: "Error: Could not access > configuration 'osm.sumocfg'. > Quitting (on error)." which is the name of the OSM file. > > image.png > > I also tried running it using "Build" but it only opened the > command prompt very quickly and closed it. > > image.png > > Would anybody know what I'm doing wrong? Thanks so much! > > Brandon > > > > > On Wed, Nov 24, 2021 at 10:27 PM Brandon Cedric Patangan > <[email protected] <mailto:[email protected]>> wrote: > > Hi Jakob, > > Thank you so much, it's a very big help. I was able to > follow the user tutorial up until the part where it talks > about the rscfg file (around 37:46 in the tutorial), and was > able to save my dataset with the road ID included for clarity: > > Capture 3.PNG > > I was not able to find a rscfg file in the SUMO files > anywhere, and I didn't quite catch from the video what > command was used to run routeSampler.py. My apologies if > there's so many questions, I'm truly trying to learn this > for the first time! > > Thank you so much, > Brandon > > On Wed, Nov 24, 2021 at 3:24 PM Jakob Erdmann > <[email protected] <mailto:[email protected]>> wrote: > > Counts can be defined visually for an existing network > using netedit. See https://youtu.be/aiOQbaB-pWo > <https://youtu.be/aiOQbaB-pWo> > You can define count values per mode by defining > multiple count attributes for each edge. Then run > routeSampler.py multiple times with different values for > option --edgedata-attribute and option --prefix. > see > https://sumo.dlr.de/docs/Tools/Turns.html#edge_counts > <https://sumo.dlr.de/docs/Tools/Turns.html#edge_counts> > > Am Mi., 24. Nov. 2021 um 02:45 Uhr schrieb Brandon > Cedric Patangan via sumo-user <[email protected] > <mailto:[email protected]>>: > > Thank you Jakob. I apologize for asking once again, > as I am very new to Python and not well-versed in > scripting (I'm an Economics major), but suppose I > wanted to use the AADT values in the simulation. I > have the following road traffic info, as well as > count values for those survey sites per mode: > > Available Survey Sites.PNG > > > Can I edit this directly on the imported OSM file > from the Web Wizard, or do I have to manually create > my own network? Also, am I able to specify count > values per mode, and not just the total vehicle count? > > My last question is, how exactly would I accomplish > this, should I decide to use it in an existing > scenario. Will I need to input it in a command > prompt? Thank you so much! > > Brandon > > On Fri, Nov 19, 2021 at 5:03 PM Jakob Erdmann > <[email protected] > <mailto:[email protected]>> wrote: > > If you have more than one AADT value, I > recommend making use of it to improve the random > traffic. > To aggregated trip information by vehicle type > (mode), the latest development version supports > the tool tripinfoByType.py : > > https://sumo.dlr.de/docs/Tools/Output.html#tripinfobytypepy > > <https://sumo.dlr.de/docs/Tools/Output.html#tripinfobytypepy> > You can either obtain this version tomorrow at > > https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version > > <https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version> > or wait until the release of version 1.11.0 > schedule for next week. > > regards, > Jakob > > Am Fr., 19. Nov. 2021 um 08:38 Uhr schrieb > Brandon Cedric Patangan via sumo-user > <[email protected] > <mailto:[email protected]>>: > > Thank you Jakob. Upon further examination, I > feel that the OSM web wizard's generator > will be sufficient for the study as I do not > have O-D count but just AADT data for the > study area. > > Hope this doesn't clutter up this thread but > I just thought I'd ask, is there a way to > see individual values of "Average Trip Time > Lost" for each mode? In SUMO GUI I can see > the "Average Trip Time Lost" value for all > modes, but I was hoping to see an individual > value for bus, car, etc. to use in the > study. Thanks! > > Brandon > > On Thu, Nov 18, 2021 at 11:01 PM Jakob > Erdmann <[email protected] > <mailto:[email protected]>> wrote: > > Hello, > osmWebWizard defines randomTraffic and > only uses a single "count" value per > mode to scale the global amount up and down. > If you have count data for multiple > locations, I recommend this: > > https://sumo.dlr.de/docs/Tools/Turns.html#routesamplerpy > > <https://sumo.dlr.de/docs/Tools/Turns.html#routesamplerpy> > (see also > > https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html > > <https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html>) > > regards, > Jakob > > Am Do., 18. Nov. 2021 um 15:41 Uhr > schrieb Brandon Cedric Patangan via > sumo-user <[email protected] > <mailto:[email protected]>>: > > Good day! > > I'm Brandon Patangan, an > undergraduate Economics student at > the University of The Philippines > Los Banos. I'm currently working on > a thesis that aims to simulate the > possible effects of the construction > of a proposed Public-Private > Partnership bypass road on Travel > Time Savings. > > I do have multi-modal Annual Average > Daily Traffic (AADT) data for the > study area (Coordinates 14.206762 > 121.251646 in OSM Web Wizard) and I > was wondering if there was a way to > use this data to determine the total > vehicle hourly count in OSM Web Wizard? > > From what I understand in the > document > > <https://sumo.dlr.de/docs/Tutorials/OSMWebWizard.html>, > the total vehicle count is computed > based on count x edge length x > lanes, and I was hoping to use the > real-world AADT value instead. Thank > you! > > Brandon > > > > _______________________________________________ > sumo-user mailing list > [email protected] > <mailto:[email protected]> > To unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > > _______________________________________________ > sumo-user mailing list > [email protected] > <mailto:[email protected]> > To unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] > <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <https://www.eclipse.org/mailman/listinfo/sumo-user> > > _______________________________________________ > sumo-user mailing list > [email protected] <mailto:[email protected]> > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > <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
