You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Fit Kit Logged Utility provides methods to retrieve test data (fit kit test results) used by the compartment 3 tests, and splits them into two dataframes (one 'normal' one 'abnormal').
3
+
The Fit Kit Logged Utility provides methods to retrieve test data (fit kit test results) used by the compartment 3 tests, and splits them into two dataframes (one 'normal', one 'abnormal').
4
4
5
5
## Table of Contents
6
6
@@ -13,7 +13,7 @@ The Fit Kit Logged Utility provides methods to retrieve test data (fit kit test
13
13
14
14
## Using the Fit Kit Logged Utility
15
15
16
-
To use the Fit Kit Logged Utility, import the `fit_kit_logged.py` module, from the `utils` directory, into your test file and call its methods as required.
16
+
To use the Fit Kit Logged Utility, import the `fit_kit_logged.py` module, from the `utils` directory, into your test file and call the `process_kit_data` method as required.
17
17
18
18
## Required Arguments
19
19
@@ -24,31 +24,30 @@ The methods in this utility require specific arguments. Below is a summary of th
24
24
25
25
## Fit Kit Logged Specific Functions
26
26
27
-
The `fit_kit_logged` Utility includes methods for retrieving FIT test kits from the DB and splitting them into 'Normal' and 'Abnormal' results. Below are the key functions:
27
+
The `fit_kit_logged` Utility includes methods for retrieving FIT test kits from the DB and splitting them into 'Normal' and 'Abnormal' results. Below are their key functions:
This method splits the dataframe into two dataframes, 1 normal and 1 abnormal.
36
+
This method splits the `dataframe` into two dataframes, 1 normal and 1 abnormal.
37
37
-**Arguments**:
38
-
-`kit_id_df` (pd.DataFrame): A dataframe containing fit kit IDs.
38
+
-`kit_id_df` (pd.DataFrame): A `dataframe` containing fit kit IDs.
39
39
-`smokescreen_properties` (dict): A dictionary containing the number of normal and abnormal fit kits to split.
40
40
-**Returns**: A tuple containing two dataframes:
41
-
- normal_fit_kit_df (pd.DataFrame): Dataframe containing normal fit kits.
42
-
- abnormal_fit_kit_df (pd.DataFrame): Dataframe containing abnormal fit kits.
41
+
- normal_fit_kit_df (pd.DataFrame): `dataframe` containing normal fit kits.
42
+
- abnormal_fit_kit_df (pd.DataFrame): `dataframe` containing abnormal fit kits.
43
43
44
44
## Example Usage
45
45
46
46
```python
47
47
from utils.fit_kit_logged import process_kit_data
48
48
49
49
defexample_usage() -> None:
50
-
# Find data , separate it into normal and abnormal, Add results to the test records in the KIT_QUEUE table (i.e. mimic receiving results from the middleware)
51
-
# and get device IDs and their flags
50
+
# Find data, separate it into normal and abnormal, add results to the test records in the KIT_QUEUE table (i.e. mimic receiving results from the middleware) and get device IDs and their flags.
0 commit comments