Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JTR Router cannot handle PHEMLight #5669

Closed
jprk opened this issue May 23, 2019 · 0 comments

Comments

@jprk
Copy link

commented May 23, 2019

I am on Windows x64, I have the licensed version of PHEMLight installed in its default diferectory (i.e. %SUMO%\data\emissions\PHEMlight) and I am trying to generate a set of routes for vehicles that use the commercial PHEMLight model, but whenever I try to run jtrrouter with vehicle types that contain reference to PHEMLight, the following happens:

<SUMO_BIN_PATH>\jtrrouter --route-files=flows.mid.xml  --turn-ratio-files=zizkov_closed.turndefs.xml --net-file=zizkov_flora_closed.net.xml --output-file=routes.mid.rou.xml --random --randomize-flows --remove-loops --accept-all-destinations --max-edges-factor=0.5
Error: No option with the name 'phemlight-path' exists.
Quitting (on error).

The solution is at the moment to replace the PHEMLight emission classes

<flows>
	<vTypeDistribution id="private">
		<vType vCLass="passenger" guiShape="passenger/wagon" emissionClass="PHEMlight/PC_G_EU6" accel="2.7" length="6.0" minGap="1.5" maxSpeed="70" id="PC_WAGON_G_EU6" color="white" probability="0.018"/>
		...
	</vTypeDistribution>

with HBEFA3, i.e.

	<vTypeDistribution id="private">
		<vType vCLass="passenger" guiShape="passenger/wagon" emissionClass="HBEFA3/PC_G_EU6" accel="2.7" length="6.0" minGap="1.5" maxSpeed="70" id="PC_WAGON_G_EU6" color="white" probability="0.018"/>
		...
	</vTypeDistribution>

and then to edit routes.mid.rou.xml and change all <vtype emissionClass="..."/> back to PHEMLight.

It happens in the current Git master as well as in 1.2.0. The cause is a ProcessException somewhere in SAX parser, my guess is that it is happening due to incompatible set of command line options (i.e. reference to PHEMLight causes the serach for phemlight-path but that option is only available for sumo and sumo-gui).

Jan

@namdre namdre closed this in 0679aff May 23, 2019

namdre added a commit that referenced this issue May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.