Skip to content

Commit

Permalink
Simplify poisson LL tests with only one variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyWillard committed Dec 10, 2024
1 parent 10e5d98 commit 14d9bf3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ def simple_valid_factory_with_pois() -> MockStatisticInput:
list(data_coords.keys()),
np.random.poisson(lam=20.0, size=data_dim),
),
"incidD": (
list(data_coords.keys()),
np.random.poisson(lam=20.0, size=data_dim),
),
},
coords=data_coords,
)
Expand All @@ -253,10 +249,6 @@ def simple_valid_factory_with_pois() -> MockStatisticInput:
list(data_coords.keys()),
np.random.poisson(lam=20.0, size=data_dim),
),
"incidD": (
list(data_coords.keys()),
np.random.poisson(lam=20.0, size=data_dim),
),
},
coords=data_coords,
)
Expand Down Expand Up @@ -287,10 +279,10 @@ def simple_valid_factory_with_pois_with_some_zeros() -> MockStatisticInput:
}
] = 0

mock_input.gt_data["incidD"].loc[
mock_input.gt_data["incidH"].loc[
{
"date": mock_input.gt_data.coords["date"][0],
"subpop": mock_input.gt_data.coords["subpop"][0],
"date": mock_input.gt_data.coords["date"][2],
"subpop": mock_input.gt_data.coords["subpop"][2],
}
] = 0

Expand Down

0 comments on commit 14d9bf3

Please sign in to comment.