Skip to content

Commit

Permalink
change output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbischoff committed Nov 25, 2024
1 parent 1f019b3 commit b74b3ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package playground.vsp.cadyts.marginals;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand Down Expand Up @@ -63,13 +62,14 @@ private static DistanceDistribution createDistanceDistribution() {
return result;
}

private Config createConfig() {
private Config createConfig(String outputSuffix) {

Config config = ConfigUtils.createConfig();
String[] modes = new String[]{TransportMode.car, TransportMode.bike};

config.routing().setNetworkRouteConsistencyCheck(RoutingConfigGroup.NetworkRouteConsistencyCheck.disable);
config.controller().setOutputDirectory(this.utils.getOutputDirectory());
String outputDirectory = this.utils.getOutputDirectory();
config.controller().setOutputDirectory(outputDirectory.substring(0,outputDirectory.length()-1)+outputSuffix);
config.controller().setOverwriteFileSetting(OutputDirectoryHierarchy.OverwriteFileSetting.deleteDirectoryIfExists);
config.controller().setLastIteration(40);

Expand Down Expand Up @@ -244,7 +244,7 @@ private static Plan createPlan(String mode, String endLink, Network network, Pop
@MethodSource("arguments")
void test(double countsWeight, double modalDistanceWeight) {

Config config = createConfig();
Config config = createConfig(countsWeight+"_"+modalDistanceWeight);
CadytsConfigGroup cadytsConfigGroup = new CadytsConfigGroup();
cadytsConfigGroup.setWriteAnalysisFile(true);
config.addModule(cadytsConfigGroup);
Expand Down

0 comments on commit b74b3ac

Please sign in to comment.