Skip to content

Commit

Permalink
Do not implement step! function
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Apr 22, 2020
1 parent 945a326 commit c4145f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
keywords = ["markov chain monte carlo", "probablistic programming"]
license = "MIT"
desc = "A lightweight interface for common MCMC methods."
version = "1.0.0"
version = "1.0.1"

[deps]
ConsoleProgressMonitor = "88cd18e8-d9cc-4ea6-8889-5259c0d15c8b"
Expand Down
10 changes: 4 additions & 6 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ When sampling from the `sampler` using [`sample`](@ref), every `step!` call afte
has access to the previous `transition`. In the first call, `transition` is set to `nothing`.
"""
function step!(
::Random.AbstractRNG,
rng::Random.AbstractRNG,
model::AbstractModel,
sampler::AbstractSampler,
::Integer = 1,
transition = nothing;
N::Integer = 1;
kwargs...
)
error("function `step!` is not implemented for models of type $(typeof(model)), ",
"samplers of type $(typeof(sampler)), and transitions of type $(typeof(transition))")
return step!(rng, model, sampler, N, nothing; kwargs...)
end

"""
Expand Down Expand Up @@ -145,4 +143,4 @@ function transitions_save!(
)
push!(transitions, transition)
return
end
end

0 comments on commit c4145f8

Please sign in to comment.