episimlab.setup.greek package
Submodules
episimlab.setup.greek.eta module
- class episimlab.setup.greek.eta.SetupDefaultEta
Bases:
objectReturn a default value for eta.
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : eta
- get_eta()
- initialize()
- eta
- class episimlab.setup.greek.eta.SetupEtaFromAsympRate(*, t_onset_to_Ih)
Bases:
episimlab.setup.greek.eta.SetupDefaultEtaGiven a static scalar time until hospitalization, calculate eta.
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : eta
- t_onset_to_Ih
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- get_eta()
- eta
episimlab.setup.greek.gamma module
- class episimlab.setup.greek.gamma.SetupDefaultGamma
Bases:
objectProvide default values for gamma for compartments Ia, Iy, and Ih.
- gamma_Ih
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Ih
- gamma_Ia
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Ia
- gamma_Iy
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Iy
- initialize()
- gamma_Ih
- class episimlab.setup.greek.gamma.SetupGammaIa(*, tri_Iy2R_para, stochastic, seed_state)
Bases:
objectDraws gamma for compartments Ia from a triangular distribution defined by 3-length array tri_Iy2R_para.
- gamma_Ia
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Ia
- tri_Iy2R_para
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- get_gamma_Ia() float
Sample from triangular distributions if stochastic, or return the mean if deterministic.
- initialize()
Note that because seed_state is same for both rng, gamma_Ia and gamma_Iy are exactly the same at each timestep.
- gamma_Ia
- class episimlab.setup.greek.gamma.SetupGammaIh(*, tri_Ih2R, stochastic, seed_state)
Bases:
objectDraws gamma for compartment Ih from a triangular distribution defined by 3-length array tri_Ih2R.
- gamma_Ih
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Ih
- tri_Ih2R
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- get_gamma() xarray.core.dataarray.DataArray
- initialize()
- gamma_Ih
- class episimlab.setup.greek.gamma.SetupGammaIy(*, gamma_Ia)
Bases:
objectSet gamma for Iy equal to gamma for Ia
- gamma_Ia
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : gamma_Ia
- gamma_Iy
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : gamma_Iy
- initialize()
- run_step()
- gamma_Ia
episimlab.setup.greek.mu module
- class episimlab.setup.greek.mu.SetupDefaultMu
Bases:
objectReturns a static, scalar default value for mu.
- mu
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : mu
- get_mu()
- initialize()
- mu
- class episimlab.setup.greek.mu.SetupDynamicMuIh2D(*, tri_Ih2D, stochastic, seed_state)
Bases:
episimlab.setup.greek.mu.SetupStaticMuIh2DLike SetupStaticMuIh2D, but the triangular distibution is sampled to calculate mu at every step.
- tri_Ih2D
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- mu
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : mu
- run_step()
- tri_Ih2D
- class episimlab.setup.greek.mu.SetupStaticMuIh2D(*, tri_Ih2D, stochastic, seed_state)
Bases:
objectGiven a length 3 iterable input tri_Ih2D, calculate mu after sampling once from this triangular distibution, at the beginning of the simulation.
- tri_Ih2D
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- mu
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : mu
- get_mu()
Sample from triangular distribution if stochastic, or return the mean if deterministic.
- initialize()
- tri_Ih2D
episimlab.setup.greek.nu module
episimlab.setup.greek.omega module
- class episimlab.setup.greek.omega.SetupDefaultOmega
Bases:
object- omega
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : omega
- TAGS = ('deprecated',)
- get_omega()
- initialize()
- omega
- class episimlab.setup.greek.omega.SetupDynamicOmega(*, prop_trans_in_p, symp_h_ratio, asymp_relative_infect, gamma, eta, rho, tau)
Bases:
episimlab.setup.greek.omega.SetupStaticOmegaLike SetupStaticOmega, but recalculate at every step.
- omega
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : omega
- prop_trans_in_p
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- symp_h_ratio
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘age_group’,)
static :
True
- asymp_relative_infect
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- gamma
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : gamma
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : eta
- rho
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : rho
- tau
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : tau
- run_step()
- omega
- class episimlab.setup.greek.omega.SetupStaticOmega(*, prop_trans_in_p, symp_h_ratio, asymp_relative_infect, gamma, eta, rho, tau)
Bases:
episimlab.setup.greek.omega.SetupDefaultOmegaCalculate omega once at the beginning of the simulation.
- omega
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : omega
- prop_trans_in_p
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- symp_h_ratio
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘age_group’,)
static :
True
- asymp_relative_infect
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- gamma
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : gamma
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : eta
- rho
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : rho
- tau
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : tau
- get_omega() xarray.core.dataarray.DataArray
- get_omega_a() xarray.core.dataarray.DataArray
- get_omega_p() xarray.core.dataarray.DataArray
- get_omega_pa() xarray.core.dataarray.DataArray
- get_omega_py() xarray.core.dataarray.DataArray
- get_omega_y() xarray.core.dataarray.DataArray
- omega
episimlab.setup.greek.pi module
- class episimlab.setup.greek.pi.SetupDefaultPi
Bases:
object- pi
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : pi
- TAGS = ('deprecated',)
- get_pi()
- initialize()
- pi
- class episimlab.setup.greek.pi.SetupDynamicPi(*, symp_h_ratio_w_risk, gamma, eta)
Bases:
episimlab.setup.greek.pi.SetupStaticPiLike SetupStaticPi, but recalculate at every step
- pi
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : pi
- symp_h_ratio_w_risk
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘risk_group’, ‘age_group’)
static :
True
- gamma
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : gamma
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : eta
- run_step()
- pi
- class episimlab.setup.greek.pi.SetupStaticPi(*, symp_h_ratio_w_risk, gamma, eta)
Bases:
episimlab.setup.greek.pi.SetupDefaultPiCalculate pi after sampling once from this triangular distibution, at the beginning of the simulation.
- pi
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : pi
- symp_h_ratio_w_risk
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : (‘risk_group’, ‘age_group’)
static :
True
- gamma
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : gamma
- eta
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : eta
- get_pi() xarray.core.dataarray.DataArray
- pi
episimlab.setup.greek.rho module
- class episimlab.setup.greek.rho.SetupDefaultRho
Bases:
objectProvide a default value for rho_Ia and rho_Iy.
- rho_Ia
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : rho_Ia
- rho_Iy
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : rho_Iy
- initialize()
- rho_Ia
- class episimlab.setup.greek.rho.SetupRhoIa(*, tri_Pa2Ia)
Bases:
objectCalculate rho for compartment Ia.
- tri_Pa2Ia
attr.Attribute No description given
Variable properties:
type :
variableintent :
inglobal name : tri_Pa2Ia
dimensions : ()
static :
True
- rho_Ia
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : rho_Ia
- initialize()
- tri_Pa2Ia
- class episimlab.setup.greek.rho.SetupRhoIy(*, tri_Py2Iy)
Bases:
objectCalculate rho for compartment Iy.
- tri_Py2Iy
attr.Attribute No description given
Variable properties:
type :
variableintent :
inglobal name : tri_Py2Iy
dimensions : ()
static :
True
- rho_Iy
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : rho_Iy
- initialize()
- tri_Py2Iy
episimlab.setup.greek.sigma module
- class episimlab.setup.greek.sigma.SetupDefaultSigma
Bases:
objectReturns a static, scalar default value for sigma.
- sigma
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : sigma
- TAGS = ('example',)
- get_sigma()
- initialize()
- sigma
- class episimlab.setup.greek.sigma.SetupDynamicSigmaFromExposedPara(*, tri_exposed_para, stochastic, seed_state)
Bases:
episimlab.setup.greek.sigma.SetupStaticSigmaFromExposedParaLike SetupStaticSigmaFromExposedPara, but the triangular distibution is sampled to calculate sigma at every step.
- sigma
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : sigma
- tri_exposed_para
attr.Attribute No description given
Variable properties:
type :
variableintent :
inglobal name : tri_exposed_para
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- run_step()
- sigma
- class episimlab.setup.greek.sigma.SetupStaticSigmaFromExposedPara(*, tri_exposed_para, stochastic, seed_state)
Bases:
episimlab.setup.greek.sigma.SetupDefaultSigmaGiven a length 3 iterable input tri_exposed_para, calculate sigma after sampling once from this triangular distibution, at the beginning of the simulation.
- sigma
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : sigma
- tri_exposed_para
attr.Attribute No description given
Variable properties:
type :
variableintent :
inglobal name : tri_exposed_para
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : stochastic
- seed_state
attr.Attribute No description given
Variable properties:
type :
globalintent :
inglobal name : seed_state
- get_sigma()
Sample from triangular distribution if stochastic, or return the mean if deterministic.
- sigma
episimlab.setup.greek.tau module
- class episimlab.setup.greek.tau.SetupDefaultTau
Bases:
objectReturn a default value for tau.
- tau
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : tau
- initialize()
- tau
- class episimlab.setup.greek.tau.SetupTauFromAsympRate(*, asymp_rate)
Bases:
objectGiven a static scalar input asymptomatic ratio, calculate tau.
- asymp_rate
attr.Attribute No description given
Variable properties:
type :
variableintent :
indimensions : ()
static :
True
- tau
attr.Attribute No description given
Variable properties:
type :
globalintent :
outglobal name : tau
- initialize()
- asymp_rate