Skip to content

Commit

Permalink
needed to also adjust the xml name
Browse files Browse the repository at this point in the history
  • Loading branch information
jafshin committed Nov 7, 2020
1 parent d8bf317 commit ea1678c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions population/vistaPopGenerator.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------------------------------------------
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit ea1678c

Please sign in to comment.