@@ -21,10 +21,10 @@ class LatentSample(NamedTuple):
2121
2222 Attributes
2323 ----------
24- aggregate : ArrayLike
24+ aggregate
2525 Total infections aggregated across all subpopulations.
2626 Shape: (n_total_days,)
27- all_subpops : ArrayLike
27+ all_subpops
2828 Infections for all subpopulations.
2929 Shape: (n_total_days, n_subpops)
3030 """
@@ -40,7 +40,7 @@ class PopulationStructure:
4040
4141 Attributes
4242 ----------
43- fractions : ArrayLike
43+ fractions
4444 Population fractions for all subpopulations.
4545 Shape: (n_subpops,)
4646 """
@@ -78,9 +78,9 @@ class BaseLatentInfectionProcess(RandomVariable):
7878
7979 Parameters
8080 ----------
81- gen_int_rv : RandomVariable
81+ gen_int_rv
8282 Generation interval PMF
83- n_initialization_points : int
83+ n_initialization_points
8484 Number of initialization days before day 0. Must be at least
8585 ``len(gen_int_rv())`` to provide enough history for the renewal
8686 equation convolution.
@@ -108,11 +108,11 @@ def __init__(
108108
109109 Parameters
110110 ----------
111- name : str
111+ name
112112 A name for this random variable.
113- gen_int_rv : RandomVariable
113+ gen_int_rv
114114 Generation interval PMF
115- n_initialization_points : int
115+ n_initialization_points
116116 Number of initialization days before day 0. Must be at least
117117 ``len(gen_int_rv())`` to provide enough history for the renewal
118118 equation convolution.
@@ -145,7 +145,7 @@ def _parse_and_validate_fractions(
145145
146146 Parameters
147147 ----------
148- subpop_fractions : ArrayLike
148+ subpop_fractions
149149 Population fractions for all subpopulations. Must be a 1D array
150150 with at least one element. Values must be non-negative and sum to 1.
151151
@@ -200,13 +200,13 @@ def _validate_output_shapes(
200200
201201 Parameters
202202 ----------
203- infections_aggregate : ArrayLike
203+ infections_aggregate
204204 Aggregate infections (sum across subpopulations)
205- infections_all : ArrayLike
205+ infections_all
206206 All subpopulation infections
207- n_total_days : int
207+ n_total_days
208208 Expected number of days (n_initialization_points + n_days_post_init)
209- pop : PopulationStructure
209+ pop
210210 Population structure
211211
212212 Raises
@@ -241,7 +241,7 @@ def _validate_I0(I0: ArrayLike) -> None:
241241
242242 Parameters
243243 ----------
244- I0 : ArrayLike
244+ I0
245245 Initial infection prevalence (scalar or array)
246246
247247 Raises
@@ -310,16 +310,16 @@ def sample(
310310 n_days_post_init : int ,
311311 * ,
312312 subpop_fractions : ArrayLike = None ,
313- ** kwargs ,
313+ ** kwargs : object ,
314314 ) -> LatentSample :
315315 """
316316 Sample latent infections for all subpopulations.
317317
318318 Parameters
319319 ----------
320- n_days_post_init : int
320+ n_days_post_init
321321 Number of days to simulate after initialization period
322- subpop_fractions : ArrayLike
322+ subpop_fractions
323323 Population fractions for all subpopulations.
324324 Shape: (n_subpops,). Must sum to 1.0.
325325 **kwargs
0 commit comments