Skip to content

Commit c92a866

Browse files
authored
Merge pull request #34 from TuringLang/notimplemented
2 parents 945a326 + c4145f8 commit c92a866

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
33
keywords = ["markov chain monte carlo", "probablistic programming"]
44
license = "MIT"
55
desc = "A lightweight interface for common MCMC methods."
6-
version = "1.0.0"
6+
version = "1.0.1"
77

88
[deps]
99
ConsoleProgressMonitor = "88cd18e8-d9cc-4ea6-8889-5259c0d15c8b"

src/interface.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,13 @@ When sampling from the `sampler` using [`sample`](@ref), every `step!` call afte
7878
has access to the previous `transition`. In the first call, `transition` is set to `nothing`.
7979
"""
8080
function step!(
81-
::Random.AbstractRNG,
81+
rng::Random.AbstractRNG,
8282
model::AbstractModel,
8383
sampler::AbstractSampler,
84-
::Integer = 1,
85-
transition = nothing;
84+
N::Integer = 1;
8685
kwargs...
8786
)
88-
error("function `step!` is not implemented for models of type $(typeof(model)), ",
89-
"samplers of type $(typeof(sampler)), and transitions of type $(typeof(transition))")
87+
return step!(rng, model, sampler, N, nothing; kwargs...)
9088
end
9189

9290
"""
@@ -145,4 +143,4 @@ function transitions_save!(
145143
)
146144
push!(transitions, transition)
147145
return
148-
end
146+
end

0 commit comments

Comments
 (0)