From ea1678cbcf6f3ed89422299c4042f0c6c226c91c Mon Sep 17 00:00:00 2001 From: jafshin Date: Sat, 7 Nov 2020 23:22:30 +1100 Subject: [PATCH] needed to also adjust the xml name --- population/vistaPopGenerator.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/population/vistaPopGenerator.R b/population/vistaPopGenerator.R index 37dff56..6d732c1 100644 --- a/population/vistaPopGenerator.R +++ b/population/vistaPopGenerator.R @@ -23,7 +23,7 @@ useWeights <- F # set T if you want to use waits if(useWeights) { sample_size <- 0.1 # Adjust the sample size if you want to use weights }else{ - sample_size <- "VISTA" + sample_size <- "VISTA" } # VISTA Trips ------------------------------------------------------------- @@ -110,7 +110,7 @@ if(useWeights){ # Generating MATSim population -------------------------------------------- xml_dir <- "./" -xml_file <- paste0(xml_dir,"pop",sample_size*100,"pct.xml") +xml_file <- paste0(xml_dir,"pop",sample_size,"pct.xml") ifelse(!dir.exists(xml_dir), dir.create(xml_dir), FALSE) open(file(xml_file), "wt")