Skip to content

Commit

Permalink
added back prob and logprob macros
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed May 17, 2024
1 parent 9098747 commit bbdc0c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DynamicPPL"
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
version = "0.27.0"
version = "0.27.1"


[deps]
Expand Down
13 changes: 13 additions & 0 deletions src/DynamicPPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@ export AbstractVarInfo,
using Distributions: loglikelihood
export loglikelihood

# TODO: Remove once we've updated tutorials, etc.
macro logprob_str(str)
return error(
"The `@logprob_str` macro is no longer supported. See https://turinglang.org/dev/docs/using-turing/guide/#querying-probabilities-from-model-or-chain for information on how to query probabilities.",
)
end

macro prob_str(str)
return error(
"The `@prob_str` macro is no longer supported. See https://turinglang.org/dev/docs/using-turing/guide/#querying-probabilities-from-model-or-chain for information on how to query probabilities.",
)
end

# Used here and overloaded in Turing
function getspace end

Expand Down

0 comments on commit bbdc0c6

Please sign in to comment.