sid.testing_processing¶
Module Contents¶
Functions¶
|
Process tests which have been taken by individuals and are pending. |
-
process_tests(states: pd.DataFrame, testing_processing_models: Dict[str, Dict[str, Any]], params: pd.DataFrame, date: pd.Timestamp, seed: itertools.count) → pd.Series[source]¶ Process tests which have been taken by individuals and are pending.
In
statesthere is a column called"pending_test"which isTruefor individuals which took as test which has not been processed, yet. Processing means that a countdown starts at which end the individual receives the test result.- Parameters
states (pandas.DataFrame) – The states of all individuals.
testing_processing_models (dict) – A dictionary containing the demand models for testing.
params (pandas.DataFrame) – The parameter DataFrame.
date (pandas.Timestamp) – Current date.
seed (itertools.count) – The seed counter.
- Returns
- A boolean series indicating which
tests have been chose for processing.
- Return type
all_to_be_processed_tests (pandas.Series)