Skip to content

Commit 27c6966

Browse files
Jammy2211Jammy2211
authored andcommitted
fix final unit test
1 parent 0534220 commit 27c6966

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

test_autofit/graphical/global/test_hierarchical.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def test_model_info(model):
5555
2 - 3
5656
one UniformPrior [0], lower_limit = 0.0, upper_limit = 1.0
5757
factor
58-
include_prior_factors True"""
58+
include_prior_factors True
59+
use_jax False"""
5960
)
6061

6162

test_autofit/mapper/test_array.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ def log_likelihood_function(self, instance):
178178

179179

180180
def test_optimisation():
181+
182+
import jax.numpy as jnp
183+
181184
array = af.Array(
182185
shape=(2, 2),
183186
prior=af.UniformPrior(
@@ -192,4 +195,5 @@ def test_optimisation():
192195
array[0, 1] = posterior[0, 1]
193196

194197
result = af.DynestyStatic().fit(model=array, analysis=Analysis())
195-
assert isinstance(result.instance, np.ndarray)
198+
199+
assert isinstance(result.instance, jnp.ndarray)

0 commit comments

Comments
 (0)