Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verbose option to solvers #142

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Add verbose option to solvers #142

merged 1 commit into from
Dec 17, 2023

Conversation

gerlero
Copy link
Owner

@gerlero gerlero commented Dec 17, 2023

No description provided.

@@ -138,7 +138,7 @@ end
(cf::RSSCostFunction)(params::AbstractVector) = cf(candidate(cf, params))

_solve(cf::RSSCostFunction, params::AbstractVector) = _solve(cf, cf._func(params))
_solve(::RSSCostFunction, prob::Problem) = solve(prob)
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose=false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose=false)
_solve(::RSSCostFunction, prob::Problem) = solve(prob, verbose = false)

@@ -121,17 +121,7 @@

@testset "unsolved" begin
prob = DirichletProblem(identity, i = 0, b = 1)
θ = solve(prob, maxiters = 0)
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob, maxiters = 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob, maxiters = 0)
θ = @test_logs (:warn, "Maximum number of iterations reached without convergence") solve(prob,
maxiters = 0)

Copy link

codecov bot commented Dec 17, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (8c8a684) 79.58% compared to head (b04fcd8) 79.32%.

Files Patch % Lines
src/shooting.jl 60.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #142      +/-   ##
==========================================
- Coverage   79.58%   79.32%   -0.26%     
==========================================
  Files          22       22              
  Lines         764      774      +10     
==========================================
+ Hits          608      614       +6     
- Misses        156      160       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gerlero gerlero merged commit 5fdb3f2 into main Dec 17, 2023
6 of 8 checks passed
@gerlero gerlero deleted the verbose branch December 17, 2023 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant