MRC-CSO-SPHSU / LoneParentsModel.jl

An initial implementation of an ABM for social and child care
0 stars 4 forks source link

parameter handling #96

Closed mhinsch closed 1 year ago

mhinsch commented 2 years ago

read/write to file, set via command line

AtiyahElsheikh commented 2 years ago

Via Parameters.jl? or something else

mhinsch commented 2 years ago

Doesn't do any of that, unfortunately. I have some code to convert between structs and command line arguments. It shouldn't be too much of an issue to extend it to for example read and write JSON.

For my previous project I used the parameter definitions (i.e. the Julia files they were defined in) as parameter files. That works quite well and has the additional advantage that (if parameters are not mutable) the compiler can do constant propagation and speed up some parts of the model (I think).

Anyway, none of this is urgent in any way, it's just something that should happen at some point.