Skip to content

Commit 41ecb8c

Browse files
committed
NANs Quidel
1 parent 1de9d8c commit 41ecb8c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

quidel/delphi_quidel/data_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ def raw_tests_per_device(devices, tests, min_obs):
302302
se = np.repeat(np.nan, len(devices))
303303
sample_size = tests
304304

305-
return tests_per_device, se, sample_size
305+
missing_stat = tests
306+
307+
return tests_per_device, se, sample_size, missing_stat, missing_se, missing_sample_size
306308

307309
def smoothed_tests_per_device(devices, tests, min_obs, max_borrow_obs, pool_days,
308310
parent_devices=None, parent_tests=None):

quidel/delphi_quidel/run.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
from delphi_utils import (
1313
add_prefix,
1414
create_export_csv,
15-
get_structured_logger
15+
get_structured_logger,
16+
NAN_CODES
1617
)
1718

1819
from .constants import (END_FROM_TODAY_MINUS, EXPORT_DAY_RANGE,
@@ -83,6 +84,13 @@ def run_module(params: Dict[str, Any]):
8384
test_type = "covid_ag" if "covid_ag" in sensor else "flu_ag"
8485
print("state", sensor)
8586
data = dfs[test_type].copy()
87+
breakpoint()
88+
89+
# Default missingness values
90+
data["missing_val"] = NAN_CODE["Not Missing"]
91+
data["missing_se"] = NAN_CODE["Not Missing"]
92+
data["missing_sample_size"] = NAN_CODE["Not Missing"]
93+
8694
state_groups = geo_map("state", data, map_df).groupby("state_id")
8795
first_date, last_date = data["timestamp"].min(), data["timestamp"].max()
8896

0 commit comments

Comments
 (0)