Skip to content

Commit

Permalink
use the new scenario cutout class
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Oct 16, 2024
1 parent 7366728 commit 7a8ee0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,14 @@ $p/berlin-$V-25pct.plans_cadyts.xml.gz:

# These depend on the output of optimization runs
$p/berlin-$V-25pct.plans-initial.xml.gz: $p/berlin-$V-facilities.xml.gz $p/berlin-$V-network.xml.gz $p/berlin-longHaulFreight-$V-25pct.plans.xml.gz
$(sc) prepare filter-relevant-agents\
--input $p/berlin-$V-25pct.plans_cadyts.xml.gz --output $@\
--shp input/$V/area/area.shp\
$(sc) prepare scenario-cutout\
--population $p/berlin-$V-25pct.plans_cadyts.xml.gz\
--facilities $<\
--network $(word 2,$^)
--network $(word 2,$^)\
--output-population $@\
--output-network $p/network-cutout.xml.gz\
--output-facilities $p/facilities-cutout.xml.gz\
--shp input/$V/area/area.shp\

$(sc) prepare split-activity-types-duration\
--exclude commercial_start,commercial_end,freight_start,freight_end\
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/matsim/prepare/FilterRelevantAgents.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
name = "filter-relevant-agents",
description = "Filter agents that have any activities or routes within the shp file."
)
@Deprecated
public class FilterRelevantAgents implements MATSimAppCommand, PersonAlgorithm {

private static final Logger log = LogManager.getLogger(FilterRelevantAgents.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.matsim.application.prepare.network.params.ApplyNetworkParams;
import org.matsim.application.prepare.population.*;
import org.matsim.application.prepare.pt.CreateTransitScheduleFromGtfs;
import org.matsim.application.prepare.scenario.CreateScenarioCutOut;
import org.matsim.contrib.cadyts.car.CadytsCarModule;
import org.matsim.contrib.cadyts.car.CadytsContext;
import org.matsim.contrib.cadyts.general.CadytsScoring;
Expand Down Expand Up @@ -86,7 +87,7 @@
CreateLandUseShp.class, CreateBerlinPopulation.class, CreateBrandenburgPopulation.class, MergePopulations.class,
LookupRegioStaR.class, ExtractFacilityGeoPkg.class, DownSamplePopulation.class, DownloadCommuterStatistic.class,
RunActitopp.class, CreateNetworkFromSumo.class, CreateTransitScheduleFromGtfs.class,
CleanNetwork.class, CreateMATSimFacilities.class, InitLocationChoice.class, FilterRelevantAgents.class,
CleanNetwork.class, CreateMATSimFacilities.class, InitLocationChoice.class, CreateScenarioCutOut.class,
CreateCountsFromGeoPortalBerlin.class, CreateCountsFromVMZOld.class, CreateCountsFromVMZ.class, ReprojectNetwork.class, RunActivitySampling.class,
MergePlans.class, SplitActivityTypesDuration.class, CleanPopulation.class, CleanAttributes.class,
GenerateSmallScaleCommercialTrafficDemand.class, CreateDataDistributionOfStructureData.class,
Expand Down

0 comments on commit 7a8ee0f

Please sign in to comment.