sid.testing_processing
¶
Module Contents¶
Functions¶
|
Process tests which have been taken by individuals and are pending. |
- process_tests(states: pandas.DataFrame, testing_processing_models: Dict[str, Dict[str, Any]], params: pandas.DataFrame, date: pandas.Timestamp, seed: itertools.count) pandas.Series [source]¶
Process tests which have been taken by individuals and are pending.
In
states
there is a column called"pending_test"
which isTrue
for 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)