Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for analysis (simwrapper) #2869

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading