Skip to content

Commit

Permalink
Pass inserter_kwargs as NamedTuple into all_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed Sep 25, 2024
1 parent a167f9d commit 89b2527
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/solvers/defaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ default_inserter() = default_inserter
default_checkdone() = (; kws...) -> false
default_transform_operator() = nothing
function default_region_printer(;
cutoff=nothing,
mindim=nothing,
maxdim=nothing,
inserter_kwargs,
outputlevel,
state,
sweep_plan,
Expand All @@ -23,9 +21,9 @@ function default_region_printer(;
region = first(sweep_plan[which_region_update])
@printf("Sweep %d, region=%s \n", which_sweep, region)
print(" Truncated using")
!isnothing(cutoff) && @printf(" cutoff=%.1E", cutoff)
!isnothing(maxdim) && @printf(" maxdim=%d", maxdim)
!isnothing(mindim) && @printf(" mindim=%d", mindim)
haskey(inserter_kwargs, :cutoff) && @printf(" cutoff=%.1E", inserter_kwargs[:cutoff])
haskey(inserter_kwargs, :maxdim) && @printf(" maxdim=%d", inserter_kwargs[:maxdim])
haskey(inserter_kwargs, :mindim) && @printf(" mindim=%d", inserter_kwargs[:mindim])
println()
if spec != nothing
@printf(
Expand Down

0 comments on commit 89b2527

Please sign in to comment.