Skip to content

Commit

Permalink
Forgotten setting of B in the test_get_unit_prediction_intervals unit…
Browse files Browse the repository at this point in the history
… test gets it to pass (but only on this branch?)
  • Loading branch information
dmnapolitano committed Oct 31, 2024
1 parent b5570d4 commit cede190
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/models/test_bootstrap_election_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def test_get_unit_prediction_intervals(bootstrap_election_model, rng):
bootstrap_election_model.weighted_yz_test_pred = rng.normal(scale=1, size=(n, 1))
bootstrap_election_model.errors_B_1 = rng.normal(scale=s, size=(n, B))
bootstrap_election_model.errors_B_2 = rng.normal(scale=s, size=(n, B))
bootstrap_election_model.B = B
lower, upper = bootstrap_election_model.get_unit_prediction_intervals(
reporting_units, nonreporting_units, alpha, "margin"
)
Expand Down

0 comments on commit cede190

Please sign in to comment.