Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #221 from invenia/ed/fix-kwargs-data-depwarn
Browse files Browse the repository at this point in the history
Fix kwargs.data deprecation (since Julia 1.7)
  • Loading branch information
iamed2 committed Dec 1, 2022
2 parents f251e9e + 1c3c03b commit cd55e11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
@@ -1,6 +1,6 @@
name = "Nabla"
uuid = "49c96f43-aa6d-5a04-a506-44c7070ebe78"
version = "0.12.3"
version = "0.12.4"

[deps]
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
Expand Down
4 changes: 3 additions & 1 deletion src/core.jl
Expand Up @@ -80,7 +80,9 @@ struct Branch{T} <: Node{T}
end
function Branch(f, args::Tuple, tape::Tape; kwargs...)
unboxed = unbox.(args)
branch = Branch(f(unboxed...; kwargs...), f, args, kwargs.data, tape, length(tape) + 1)
branch = Branch(
f(unboxed...; kwargs...), f, args, getfield(kwargs, :data), tape, length(tape) + 1
)
push!(tape, branch)
return branch
end
Expand Down

2 comments on commit cd55e11

@iamed2
Copy link
Member Author

@iamed2 iamed2 commented on cd55e11 Dec 1, 2022

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/73295

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.12.4 -m "<description of version>" cd55e11e3580bdb2ae5478f9cc8c2fb9ebaa755e
git push origin v0.12.4

Please sign in to comment.