Browse Source

fix config parsing + dir creation

Gaspard Jankowiak 11 months ago
parent
commit
a94874ac1d
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/CellSim.jl

+ 5
- 5
src/CellSim.jl View File

@@ -195,8 +195,8 @@ function read_config(config_filename::String)
195 195
         config["output_prefix"] = "runs/"
196 196
     end
197 197
 
198
-    if !haskey(config, "recompute_nucleus_coords")
199
-        config["recompute_nucleus_coords"] = 5
198
+    if !haskey(config, "recompute_nucleus_each")
199
+        config["recompute_nucleus_each"] = 5
200 200
     end
201 201
 
202 202
     if (config["metrics"]["start_iteration"] <= 0) && !F.nucleus
@@ -219,9 +219,9 @@ function launch(P::CSC.Params, F::CSC.Flags, config)
219 219
         config["output_prefix"] = "runs/"
220 220
     end
221 221
 
222
-    run(`mkdir -p runs`)
223
-    run(`mkdir -p dumps`)
224
-    run(`mkdir -p $(config["output_prefix"])`)
222
+    mkpath("runs")
223
+    mkpath("dumps")
224
+    mkpath("$(config["output_prefix"])")
225 225
     run(`cp $(config["config_filename"]) $(config["output_prefix"])Run_$(config["date_string"]).yaml`)
226 226
     println("Parameters:")
227 227
     for s in fieldnames(typeof(P))

Loading…
Cancel
Save