Skip to content

Commit e10511a

Browse files
committed
Add better signposting for warning
1 parent a14fdf6 commit e10511a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/model/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ def register_rv(
12481248
and total_size is None
12491249
):
12501250
warnings.warn(
1251-
"total_size not provided for observed variable that uses pm.Minibatch"
1251+
f"total_size not provided for observed variable `{name}` that uses pm.Minibatch"
12521252
)
12531253
if not is_valid_observed(observed):
12541254
raise TypeError(

0 commit comments

Comments
 (0)