Skip to content

Commit

Permalink
fix another test
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Jan 14, 2025
1 parent 19f4432 commit 7444a5d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_convergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
from jax import jit, random, vmap

from bpd.chains import run_inference_nuts
from bpd.pipelines.shear_inference import pipeline_shear_inference_ellipticities
from bpd.pipelines.toy_ellips import logtarget as logtarget_toy_ellips
from bpd.pipelines.toy_ellips import pipeline_toy_ellips_samples
from bpd.prior import sample_noisy_ellipticities_unclipped
from bpd.pipelines import (
logtarget_toy_ellips,
pipeline_shear_inference_simple,
pipeline_toy_ellips,
)
from bpd.sample import sample_noisy_ellipticities_unclipped


@pytest.mark.parametrize("seed", [1234, 4567])
Expand Down Expand Up @@ -84,7 +86,7 @@ def test_toy_shear_convergence(seed):
key = random.key(seed)
k1, k2 = random.split(key)

e_post, _, _ = pipeline_toy_ellips_samples(
e_post, _, _ = pipeline_toy_ellips(
k1,
g1=g1,
g2=g2,
Expand All @@ -97,7 +99,7 @@ def test_toy_shear_convergence(seed):

# run 4 shear chains over the given e_post
_pipeline_shear1 = partial(
pipeline_shear_inference_ellipticities,
pipeline_shear_inference_simple,
init_g=true_g,
sigma_e=sigma_e,
sigma_e_int=sigma_e_int,
Expand Down

0 comments on commit 7444a5d

Please sign in to comment.