We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255a0c8 commit e42d35aCopy full SHA for e42d35a
pymc/testing.py
@@ -385,7 +385,9 @@ def scipy_logp_with_scipy_args(**args):
385
continue
386
387
point = valid_params.copy() # Shallow copy should be okay
388
- point[invalid_param] = invalid_edge
+ point[invalid_param] = np.asarray(
389
+ invalid_edge, dtype=paramdomains[invalid_param].dtype
390
+ )
391
with pytest.raises(ParameterValueError):
392
pymc_logp(**point)
393
pytest.fail(f"test_params={point}")
0 commit comments