You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Parameters
@with_kwmutable struct Param
a::Int=1
b::Int=2
c::Bool=trueend
which is called in
functionRunModel(;kwargs...)
P =Param(kwargs...)
# do something elseend
is there a way to empty all the variables from the kwargs into the Paramstruct? I currently get a no method matching error. Hopefully I can just convert the kwargs somehow?
The text was updated successfully, but these errors were encountered:
Say I have
which is called in
is there a way to empty all the variables from the
kwargs
into theParam
struct? I currently get a no method matching error. Hopefully I can just convert thekwargs
somehow?The text was updated successfully, but these errors were encountered: