Skip to content

Commit

Permalink
Merge pull request #34 from TuringLang/notimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Apr 22, 2020
2 parents 945a326 + c4145f8 commit c92a866
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

2 comments on commit c92a866

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/13462

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.1 -m "<description of version>" c92a866ebd650aecd5378facdc16224f40189929
git push origin v1.0.1

Please sign in to comment.