Skip to content

Commit

Permalink
shortened TestModelCopy by removing assigned variables before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekermanjian committed Sep 30, 2024
1 parent 07106ec commit fb00f85
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/model/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,12 +1782,10 @@ def test_copy_model(self, copy_method) -> None:
samples=1, random_seed=42
)

simple_model_prior_predictive_val = simple_model_prior_predictive["prior"]["y"].values
copy_simple_model_prior_predictive_val = copy_simple_model_prior_predictive["prior"][
"y"
].values

assert simple_model_prior_predictive_val == copy_simple_model_prior_predictive_val
assert (
simple_model_prior_predictive["prior"]["y"].values
== copy_simple_model_prior_predictive["prior"]["y"].values
)

with copy_simple_model:
z = pm.Deterministic("z", copy_simple_model["alpha"] + 1)
Expand Down

0 comments on commit fb00f85

Please sign in to comment.