Skip to content

Commit

Permalink
fix corsica pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl committed Nov 2, 2024
1 parent 2e8372d commit 064ae24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 064ae24

Please sign in to comment.