Skip to content

Commit

Permalink
Can change F_args and kwargs through updates too now
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjishnubose committed Oct 2, 2023
1 parent 80443aa commit 8277520
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/FixedPoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Optionally can also pass a `fileName` to checkpoint and save the results in. Can

updates = SC.Update(SC.VIns[end], SC.VOuts[end], SC.F ; F_args = SC.F_args, F_kwargs = SC.F_kwargs, SC.Update_kwargs..., SelfConsParams...)

SC.Update_kwargs = updates["kwargs"]
SC.Update_kwargs = get(updates, "kwargs", SC.Update_kwargs)
SC.F_args = get(updates, "F_args", SC.F_args)
SC.F_kwargs = get(updates, "F_kwargs", SC.F_kwargs)

push!(SC.VIns, updates["VInNext"])
push!(SC.VOuts, updates["VOutNext"])

Expand All @@ -53,7 +56,10 @@ Optionally can also pass a `fileName` to checkpoint and save the results in. Can

updates = SC.Update(SC.VIns[end], SC.VOuts[end], SC.F ; F_args = SC.F_args, F_kwargs = SC.F_kwargs, SC.Update_kwargs..., SelfConsParams...)

SC.Update_kwargs = updates["kwargs"]
SC.Update_kwargs = get(updates, "kwargs", SC.Update_kwargs)
SC.F_args = get(updates, "F_args", SC.F_args)
SC.F_kwargs = get(updates, "F_kwargs", SC.F_kwargs)

push!(SC.VIns, updates["VInNext"])
push!(SC.VOuts, updates["VOutNext"])

Expand Down

0 comments on commit 8277520

Please sign in to comment.