diff --git a/core/src/main/java/org/eqasim/core/standalone_mode_choice/RunStandaloneModeChoice.java b/core/src/main/java/org/eqasim/core/standalone_mode_choice/RunStandaloneModeChoice.java index 3ee954ed9..3c4747986 100644 --- a/core/src/main/java/org/eqasim/core/standalone_mode_choice/RunStandaloneModeChoice.java +++ b/core/src/main/java/org/eqasim/core/standalone_mode_choice/RunStandaloneModeChoice.java @@ -3,6 +3,7 @@ import java.io.BufferedReader; import java.io.FileInputStream; +import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; @@ -219,6 +220,8 @@ RecordedTravelTime provideRecordedTravelTime() { RecordedTravelTime recordedTravelTime = RecordedTravelTime.readBinary(inputStream); inputStream.close(); return recordedTravelTime; + } catch (FileNotFoundException e) { + throw new IllegalStateException("Travel time input file not found: " + path); } catch (IOException e) { throw new RuntimeException(e); } diff --git a/ile_de_france/src/test/java/org/eqasim/ile_de_france/TestCorisica.java b/ile_de_france/src/test/java/org/eqasim/ile_de_france/TestCorisica.java index eb1565583..87153b1f3 100644 --- a/ile_de_france/src/test/java/org/eqasim/ile_de_france/TestCorisica.java +++ b/ile_de_france/src/test/java/org/eqasim/ile_de_france/TestCorisica.java @@ -70,6 +70,7 @@ public void testCorsicaPipeline() "--config-path", "corsica_test/corsica_config.xml", // "--config:controler.lastIteration", "2", // , "--config:controler.outputDirectory", "corsica_test/simulation_output", // + "--config:eqasim.travelTimeRecordingInterval", "1000", // }); Assert.assertEquals(389, countPersons("corsica_test/simulation_output/output_plans.xml.gz"));