getParams function

Extract the parameter object underlying a simulation