diff --git a/src/fixed2free.jl b/src/fixed2free.jl index 9c874b0..38d820d 100644 --- a/src/fixed2free.jl +++ b/src/fixed2free.jl @@ -50,7 +50,7 @@ function optimal_λ_regularize( cost_λ = λ -> cost_λ_regularize(λ, coils, EQ, image; flux_cps, saddle_cps, iso_cps, ψbound, fixed_coils, Sb) costs = log10.([cost_λ(λ) for λ in λ_range_exp]) costs = costs .- minimum(costs) - costs = costs .+ λ_range_exp ./ max_exp .* maximum(costs) * 0.01 + costs = costs .+ λ_range_exp ./ max_exp .* maximum(costs) * 0.1 opti_λ = λ_range_exp[argmin(costs)] return 10^opti_λ end