SimPars#

class SimPars(**kwargs)[source]#

Bases: Pars

Create the parameters for the simulation. Typically, this function is used internally rather than called by the user; e.g. typical use would be to do sim = ss.Sim() and then inspect sim.pars, rather than calling this function directly.

Parameters:

kwargs (dict) – any additional kwargs are interpreted as parameter names

Methods

is_default(key)[source]#

Check if the provided value matches the default

validate()[source]#

Call parameter validation methods

validate_sim_pars()[source]#

Validate each of the parameter values

validate_verbose()[source]#

Validate verbosity

validate_agents()[source]#

Check that n_agents is supplied and convert to an integer

validate_total_pop()[source]#

Ensure one but not both of total_pop and pop_scale are defined

validate_time()[source]#

Ensure at least one of dur and stop is defined, but not both

validate_modules()[source]#

Validate modules passed in pars

validate_demographics()[source]#

Validate demographics-related input parameters

validate_networks()[source]#

Validate networks

convert_modules()[source]#

Convert different types of representations for modules into a standardized object representation that can be parsed and used by a Sim object. Used for starsim classes: - networks, - demographics, - diseases, - analyzers, - interventions, and - connectors.