Skip to content

Commit

Permalink
Fix unpacking of results in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Nov 15, 2024
1 parent 48bd85e commit 794f9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stan/tests/test_stan_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def assert_stan_function_allclose(
return
# Verify against expected value. We only check one because we have already verified that they
# are the same.
result, = fit.stan_variable("result")
result = fit.stan_variable("result")[0]
if not isinstance(desired, list):
desired = [desired]
try:
Expand Down

0 comments on commit 794f9eb

Please sign in to comment.