Extract the parameter object underlying a simulation

getParams(sim)

Arguments

sim

A MizerSim object

Value

The MizerParams object that was used to run the simulation

Examples

# This will be identical to the params object that was used to create the
# simulation
sim <- project(NS_params, t_max = 1)
identical(getParams(sim), NS_params)
#> [1] TRUE