arup-group / gelato

Gelato turns MATSim outputs into transport sustainability KPI metrics
GNU General Public License v3.0
10 stars 1 forks source link

Error when routing algorithm is configured as FastAStarLandmarks #76

Open KasiaKoz opened 8 months ago

KasiaKoz commented 8 months ago

Trying to run gelato with the freshest TE model outputs gives an error when reading the MATSim config:

java.lang.IllegalArgumentException: Error trying to set value FastAStarLandmarks for type org.matsim.core.config.groups.ControllerConfigGroup$RoutingAlgorithmType. Possible values are: Dijkstra,AStarLandmarks,SpeedyALT
    at org.matsim.core.config.ReflectiveConfigGroup.fromString(ReflectiveConfigGroup.java:404)
    at org.matsim.core.config.ReflectiveConfigGroup.invokeSetter(ReflectiveConfigGroup.java:317)
    at org.matsim.core.config.ReflectiveConfigGroup.addParam(ReflectiveConfigGroup.java:276)
    at org.matsim.core.config.ConfigReaderMatsimV2.startParameter(ConfigReaderMatsimV2.java:91)
    at org.matsim.core.config.ConfigReaderMatsimV2.startTag(ConfigReaderMatsimV2.java:80)
    at org.matsim.core.config.ConfigReader.startTag(ConfigReader.java:70)
    at org.matsim.core.utils.io.MatsimXmlParser.startElement(MatsimXmlParser.java:367)
    at com.ctc.wstx.sr.BasicStreamReader.fireSaxStartElement(BasicStreamReader.java:1787)
    at com.ctc.wstx.sax.WstxSAXParser.fireStartTag(WstxSAXParser.java:806)
    at com.ctc.wstx.sax.WstxSAXParser.fireEvents(WstxSAXParser.java:697)
    at com.ctc.wstx.sax.WstxSAXParser.parse(WstxSAXParser.java:623)
    at org.matsim.core.utils.io.MatsimXmlParser.parse(MatsimXmlParser.java:200)
    at org.matsim.core.utils.io.MatsimXmlParser.readFile(MatsimXmlParser.java:155)
    at org.matsim.core.config.ConfigUtils.loadConfig(ConfigUtils.java:187)
    at com.arup.cml.abm.kpi.matsim.MatsimUtils.buildConfig(MatsimUtils.java:82)
    at com.arup.cml.abm.kpi.matsim.MatsimUtils.<init>(MatsimUtils.java:59)
    at com.arup.cml.abm.kpi.matsim.run.MatsimKpiGenerator.run(MatsimKpiGenerator.java:61)
    at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
    at picocli.CommandLine.access$1500(CommandLine.java:148)
    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
    at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
    at picocli.CommandLine.execute(CommandLine.java:2170)
    at com.arup.cml.abm.kpi.matsim.run.MatsimKpiGenerator.main(MatsimKpiGenerator.java:44)
Caused by: java.lang.IllegalArgumentException: No enum constant org.matsim.core.config.groups.ControllerConfigGroup.RoutingAlgorithmType.FastAStarLandmarks
    at java.base/java.lang.Enum.valueOf(Enum.java:273)
    at org.matsim.core.config.ReflectiveConfigGroup.fromString(ReflectiveConfigGroup.java:393)
    ... 25 more
KasiaKoz commented 8 months ago

Went back to our previous TE model results (from December 12th). Running gelato on these outputs also fails with the same error. I tried other versions of gelato: