Skip to content

Commit

Permalink
fix: don't crash because lsqfit covariance could not be estimated
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Jun 27, 2024
1 parent 40b37be commit 71e9964
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/fitting/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@ function fit(
σ = try
LsqFit.standard_errors(lsq_result)
catch e
if e isa LinearAlgebra.SingularException || e isa LinearAlgebra.LAPACKException
@warn "No parameter uncertainty estimation due to error: $e"
nothing
else
throw(e)
end
@warn "No parameter uncertainty estimation due to error: $e"
nothing
end

y = _f_objective(config)(config.model_domain, params)
Expand Down

0 comments on commit 71e9964

Please sign in to comment.