Skip to content

Commit

Permalink
Merge branch 'master' into 2868-replace-txt-with-csv
Browse files Browse the repository at this point in the history
  • Loading branch information
mrieser authored Oct 13, 2023
2 parents 0119ae4 + a06649b commit 4277709
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class CreateGeoJsonNetwork implements MATSimAppCommand {
@CommandLine.Option(names = "--match-id", description = "Pattern to filter links by id")
private String matchId;

@CommandLine.Option(names = "--mode-filter", split = ",", defaultValue = "car",
@CommandLine.Option(names = "--mode-filter", split = ",", defaultValue = "car,freight,drt",
description = "Only keep links if they have one of the specified modes. Specify 'none' to disable.")
private Set<String> modes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private List<DashboardProvider> loadProvider(ImmutableSet<ClassPath.ClassInfo> c
List<DashboardProvider> result = new ArrayList<>();
for (ClassPath.ClassInfo info : classes) {
Class<?> clazz = info.load();
if (clazz.isAssignableFrom(DashboardProvider.class)) {
if (DashboardProvider.class.isAssignableFrom(clazz)) {
try {
Constructor<?> c = clazz.getDeclaredConstructor();
DashboardProvider o = (DashboardProvider) c.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class SimWrapperRunner implements MATSimAppCommand {
@CommandLine.Option(names = "--exclude", split = ",", description = "Exclusion that will be added to the config.")
private Set<String> exclude;

public static void main(String[] args) {
new SimWrapperRunner().execute(args);
}

@Override
public Integer call() throws Exception {
for (Path input : inputPaths) {
Expand Down

0 comments on commit 4277709

Please sign in to comment.