Skip to content
Open

v0.39 #1082

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# DynamicPPL Changelog

## 0.39.0

Removed the method `returned(::Model, values, keys)`; please use `returned(::Model, ::AbstractDict{<:VarName})` instead.

## 0.38.3

Add an implementation of `returned(::Model, ::AbstractDict{<:VarName})`.
Expand All @@ -11,6 +15,8 @@ The generic method `returned(::Model, values, keys)` is deprecated and will be r

Added a compatibility entry for [email protected].

> > > > > > > main

## 0.38.1

Added `from_linked_vec_transform` and `from_vec_transform` methods for `ProductNamedTupleDistribution`.
Expand Down
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.38.3"
version = "0.39.0"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
8 changes: 0 additions & 8 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1107,11 +1107,6 @@ function predict end

Execute `model` with variables `keys` set to `values` and return the values returned by the `model`.

returned(model::Model, values, keys)

Execute `model` with variables `keys` set to `values` and return the values returned by the `model`.
This method is deprecated; use the NamedTuple or AbstractDict version instead.

# Example
```jldoctest
julia> using DynamicPPL, Distributions
Expand Down Expand Up @@ -1141,6 +1136,3 @@ function returned(model::Model, parameters::Union{NamedTuple,AbstractDict{<:VarN
# We can't use new_model() because that overwrites it with an InitContext of its own.
return first(evaluate!!(new_model, vi))
end
Base.@deprecate returned(model::Model, values, keys) returned(
model, NamedTuple{keys}(values)
)
Loading