Skip to content

Commit

Permalink
Use convert for obtaining matching values when running models (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Oct 11, 2020
1 parent 5376534 commit 8c9004e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.9.5"
version = "0.9.6"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Convert the `value` to the correct type for the `sampler` and the `vi` object.
function matchingvalue(sampler, vi, value)
T = typeof(value)
if hasmissing(T)
return get_matching_type(sampler, vi, T)(value)
return convert(get_matching_type(sampler, vi, T), value)
else
return value
end
Expand Down

2 comments on commit 8c9004e

@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/22794

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 v0.9.6 -m "<description of version>" 8c9004eca82633751af1c8b0bd9fd6fea78cd266
git push origin v0.9.6

Please sign in to comment.