episimlab.setup.greek package
Submodules
episimlab.setup.greek.eta module
- class episimlab.setup.greek.eta.SetupDefaultEta
Bases:
object
Return a default value for eta.
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : eta
- get_eta()
- initialize()
- eta
- class episimlab.setup.greek.eta.SetupEtaFromAsympRate(*, t_onset_to_Ih)
Bases:
episimlab.setup.greek.eta.SetupDefaultEta
Given a static scalar time until hospitalization, calculate eta.
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : eta
- t_onset_to_Ih
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- get_eta()
- eta
episimlab.setup.greek.gamma module
- class episimlab.setup.greek.gamma.SetupDefaultGamma
Bases:
object
Provide default values for gamma for compartments Ia, Iy, and Ih.
- gamma_Ih
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : gamma_Ih
- gamma_Ia
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : gamma_Ia
- gamma_Iy
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : gamma_Iy
- initialize()
- gamma_Ih
- class episimlab.setup.greek.gamma.SetupGammaIa(*, tri_Iy2R_para, stochastic, seed_state)
Bases:
object
Draws 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 :
global
intent :
out
global name : gamma_Ia
- tri_Iy2R_para
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global 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:
object
Draws 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 :
global
intent :
out
global name : gamma_Ih
- tri_Ih2R
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : seed_state
- get_gamma() xarray.core.dataarray.DataArray
- initialize()
- gamma_Ih
- class episimlab.setup.greek.gamma.SetupGammaIy(*, gamma_Ia)
Bases:
object
Set gamma for Iy equal to gamma for Ia
- gamma_Ia
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : gamma_Ia
- gamma_Iy
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : gamma_Iy
- initialize()
- run_step()
- gamma_Ia
episimlab.setup.greek.mu module
- class episimlab.setup.greek.mu.SetupDefaultMu
Bases:
object
Returns a static, scalar default value for mu.
- mu
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : mu
- get_mu()
- initialize()
- mu
- class episimlab.setup.greek.mu.SetupDynamicMuIh2D(*, tri_Ih2D, stochastic, seed_state)
Bases:
episimlab.setup.greek.mu.SetupStaticMuIh2D
Like SetupStaticMuIh2D, but the triangular distibution is sampled to calculate mu at every step.
- tri_Ih2D
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : seed_state
- mu
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : mu
- run_step()
- tri_Ih2D
- class episimlab.setup.greek.mu.SetupStaticMuIh2D(*, tri_Ih2D, stochastic, seed_state)
Bases:
object
Given 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 :
variable
intent :
in
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : seed_state
- mu
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global 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 :
global
intent :
out
global 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.SetupStaticOmega
Like SetupStaticOmega, but recalculate at every step.
- omega
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : omega
- prop_trans_in_p
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- symp_h_ratio
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘age_group’,)
static :
True
- asymp_relative_infect
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- gamma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : gamma
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : eta
- rho
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : rho
- tau
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global 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.SetupDefaultOmega
Calculate omega once at the beginning of the simulation.
- omega
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : omega
- prop_trans_in_p
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- symp_h_ratio
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘age_group’,)
static :
True
- asymp_relative_infect
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- gamma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : gamma
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : eta
- rho
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : rho
- tau
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global 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 :
global
intent :
out
global 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.SetupStaticPi
Like SetupStaticPi, but recalculate at every step
- pi
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : pi
- symp_h_ratio_w_risk
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘risk_group’, ‘age_group’)
static :
True
- gamma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : gamma
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : eta
- run_step()
- pi
- class episimlab.setup.greek.pi.SetupStaticPi(*, symp_h_ratio_w_risk, gamma, eta)
Bases:
episimlab.setup.greek.pi.SetupDefaultPi
Calculate pi after sampling once from this triangular distibution, at the beginning of the simulation.
- pi
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : pi
- symp_h_ratio_w_risk
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : (‘risk_group’, ‘age_group’)
static :
True
- gamma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : gamma
- eta
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : eta
- get_pi() xarray.core.dataarray.DataArray
- pi
episimlab.setup.greek.rho module
- class episimlab.setup.greek.rho.SetupDefaultRho
Bases:
object
Provide a default value for rho_Ia and rho_Iy.
- rho_Ia
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : rho_Ia
- rho_Iy
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : rho_Iy
- initialize()
- rho_Ia
- class episimlab.setup.greek.rho.SetupRhoIa(*, tri_Pa2Ia)
Bases:
object
Calculate rho for compartment Ia.
- tri_Pa2Ia
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
global name : tri_Pa2Ia
dimensions : ()
static :
True
- rho_Ia
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : rho_Ia
- initialize()
- tri_Pa2Ia
- class episimlab.setup.greek.rho.SetupRhoIy(*, tri_Py2Iy)
Bases:
object
Calculate rho for compartment Iy.
- tri_Py2Iy
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
global name : tri_Py2Iy
dimensions : ()
static :
True
- rho_Iy
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : rho_Iy
- initialize()
- tri_Py2Iy
episimlab.setup.greek.sigma module
- class episimlab.setup.greek.sigma.SetupDefaultSigma
Bases:
object
Returns a static, scalar default value for sigma.
- sigma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global 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.SetupStaticSigmaFromExposedPara
Like SetupStaticSigmaFromExposedPara, but the triangular distibution is sampled to calculate sigma at every step.
- sigma
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : sigma
- tri_exposed_para
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
global name : tri_exposed_para
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : seed_state
- run_step()
- sigma
- class episimlab.setup.greek.sigma.SetupStaticSigmaFromExposedPara(*, tri_exposed_para, stochastic, seed_state)
Bases:
episimlab.setup.greek.sigma.SetupDefaultSigma
Given 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 :
global
intent :
out
global name : sigma
- tri_exposed_para
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
global name : tri_exposed_para
dimensions : (‘value’,)
static :
True
- stochastic
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global name : stochastic
- seed_state
attr.Attribute
No description given
Variable properties:
type :
global
intent :
in
global 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:
object
Return a default value for tau.
- tau
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : tau
- initialize()
- tau
- class episimlab.setup.greek.tau.SetupTauFromAsympRate(*, asymp_rate)
Bases:
object
Given a static scalar input asymptomatic ratio, calculate tau.
- asymp_rate
attr.Attribute
No description given
Variable properties:
type :
variable
intent :
in
dimensions : ()
static :
True
- tau
attr.Attribute
No description given
Variable properties:
type :
global
intent :
out
global name : tau
- initialize()
- asymp_rate