Skip to content

Commit

Permalink
fix assertion fstring, closes #357.
Browse files Browse the repository at this point in the history
  • Loading branch information
janfb committed Oct 7, 2020
1 parent d0fe846 commit b7d520a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbi/user_input/user_input_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def maybe_wrap_prior_as_pytorch(prior) -> Tuple[Distribution, bool]:
is_prior_numpy = True
else:
raise TypeError(
"Prior must return torch.Tensor or ndarray, but returns {type(theta)}"
f"Prior must return torch.Tensor or ndarray, but returns {type(theta)}"
)

return cast(Distribution, prior), is_prior_numpy
Expand Down

0 comments on commit b7d520a

Please sign in to comment.