Skip to content

Commit 933f524

Browse files
michaelraczyckimichaelosthege
authored andcommitted
changing error message to be more informative
1 parent 9c855a7 commit 933f524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/sampling/mcmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def assign_step_methods(model, step=None, methods=None, step_kwargs=None):
171171
for var in step.vars:
172172
if var not in model.value_vars:
173173
raise ValueError(
174-
"Step samplers should only contain value variables that belong to the model."
174+
f"{var} assigned to {step} sampler is not a value variable in the model. You can use `util.get_value_vars_from_user_vars` to parse user provided variables."
175175
)
176176
assigned_vars = assigned_vars.union(set(step.vars))
177177

0 commit comments

Comments
 (0)