Skip to content

Commit ac539d9

Browse files
committed
get_screening_data takes in months_per_bin
1 parent 31057d1 commit ac539d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

decipher/data/data_manager.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def get_screening_data(
299299
self,
300300
filter_strategy: PersonFilter | None = None,
301301
update_inplace: bool = False,
302+
months_per_bin: int = 3,
302303
) -> tuple[pd.DataFrame, dict]:
303304
"""Compute screening data df from exams and person df.
304305
@@ -336,7 +337,7 @@ def get_screening_data(
336337
if filter_strategy is None:
337338
filter_strategy = AtLeastNNonHPV(min_n=2)
338339

339-
observation_data_transformer = ObservationMatrix()
340+
observation_data_transformer = ObservationMatrix(months_per_bin=months_per_bin)
340341
screening_data: pd.DataFrame = observation_data_transformer.fit_transform(
341342
self.exams_df
342343
)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "decipher"
3-
version = "0.1.26"
3+
version = "0.1.27"
44
description = "Utilities for Decipher"
55
authors = ["Thorvald Molthe Ballestad <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)