Skip to content

Commit

Permalink
Merge branch 'master' into fix/drt-prebooking-variable-stop-durations…
Browse files Browse the repository at this point in the history
…-group-size
  • Loading branch information
sebhoerl authored May 27, 2024
2 parents 074dab3 + 9b101a0 commit 021afad
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class BicycleScoreEventsCreator implements
}

@Override public void handleEvent( VehicleLeavesTrafficEvent event ){
vehicle2driver.handleEvent( event );
if ( this.bicycleConfig.isMotorizedInteraction() ){
// dec count by one:
String mode = this.modeFromVehicle.get( event.getVehicleId() );
Expand All @@ -155,6 +154,8 @@ class BicycleScoreEventsCreator implements
} else {
log.warn( "no driver found for vehicleId=" + event.getVehicleId() + "; not clear why this could happen" );
}
// Needs to be called last, because it will remove driver information
vehicle2driver.handleEvent( event );
// ---
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.matsim.core.controler.OutputDirectoryHierarchy.OverwriteFileSetting;
import org.matsim.core.population.PopulationUtils;
import org.matsim.core.population.io.PopulationReader;
import org.matsim.core.population.routes.PopulationComparison;
import org.matsim.core.router.TripStructureUtils;
import org.matsim.core.scenario.ScenarioUtils;
import org.matsim.core.utils.collections.CollectionUtils;
Expand Down Expand Up @@ -204,7 +205,8 @@ void testLane() {
Scenario scenarioCurrent = ScenarioUtils.createScenario(ConfigUtils.createConfig());
new PopulationReader(scenarioReference).readFile(utils.getInputDirectory() + "output_plans.xml.gz");
new PopulationReader(scenarioCurrent).readFile(utils.getOutputDirectory() + "output_plans.xml.gz");
assertTrue(PopulationUtils.equalPopulation(scenarioReference.getPopulation(), scenarioCurrent.getPopulation()), "Populations are different");

assertEquals(PopulationComparison.Result.equal, PopulationComparison.compare(scenarioReference.getPopulation(), scenarioCurrent.getPopulation()), "Populations are different");
}

@Test
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 021afad

Please sign in to comment.