Parameters.jl usage: group variables to reduce number of inputs to function

Instead of

gp1lo,gp2lo,gp3lo = func(inputslo)
gp1hi,gp2hi,gp3hi = func(inputshi)

try

helperfunc(x,y) = (gplo=func(x),gphi=func(y))
gparams = helperfunc(inputslo,inputshi)

then you can get stuff by for example gparams.gplo.N1

1 Like