Skip to content

Commit 32ab0aa

Browse files
committed
run JuliaFormatter
1 parent 479a258 commit 32ab0aa

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

src/path_result.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ function is_real(
281281
r::PathResult;
282282
atol::Float64 = 1e-6,
283283
rtol::Float64 = 0.0,
284-
tol::Union{Float64,Nothing} = nothing
284+
tol::Union{Float64,Nothing} = nothing,
285285
)
286286
m = maximum(abs imag, r.solution)
287287
if tol !== nothing
288288
Base.depwarn(
289289
"The `tol` keyword argument is deprecated and will be removed in a future version. Use `atol` instead.",
290-
:is_real
290+
:is_real,
291291
)
292292
atol = tol
293293
end
@@ -297,8 +297,7 @@ function is_real(
297297
return m < thresh
298298
end
299299
is_real(r::PathResult, atol::Float64) = is_real(r; atol = atol)
300-
is_real(r::PathResult, atol::Float64, rtol::Float64) =
301-
is_real(r; atol, rtol)
300+
is_real(r::PathResult, atol::Float64, rtol::Float64) = is_real(r; atol, rtol)
302301
# provide fallback since this in in Base
303302
Base.isreal(r::PathResult, atol) = is_real(r, atol)
304303
Base.isreal(r::PathResult, atol, rtol) = is_real(r, atol, rtol)

src/result.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function ResultStatistics(
160160
if real_tol !== nothing
161161
Base.depwarn(
162162
"The `real_tol` keyword argument is deprecated and will be removed in a future version. Use `real_atol` instead.",
163-
:ResultStatistics
163+
:ResultStatistics,
164164
)
165165
real_atol = real_tol
166166
end
@@ -251,7 +251,7 @@ function results(
251251
if real_tol !== nothing
252252
Base.depwarn(
253253
"The `real_tol` keyword argument is deprecated and will be removed in a future version. Use `real_atol` instead.",
254-
:results
254+
:results,
255255
)
256256
real_atol = real_tol
257257
end
@@ -299,7 +299,7 @@ function nresults(
299299
if real_tol !== nothing
300300
Base.depwarn(
301301
"The `real_tol` keyword argument is deprecated and will be removed in a future version. Use `real_atol` instead.",
302-
:nresults
302+
:nresults,
303303
)
304304
real_atol = real_tol
305305
end
@@ -363,7 +363,7 @@ function real_solutions(
363363
if tol !== nothing
364364
Base.depwarn(
365365
"The `tol` keyword argument is deprecated and will be removed in a future version. Use `atol` instead.",
366-
:real_solutions
366+
:real_solutions,
367367
)
368368
atol = tol
369369
end
@@ -405,10 +405,7 @@ end
405405
Get all results where the solutions are real with the given tolerance `tol`.
406406
See [`is_real`](@ref) for details regarding how `kwargs` affect the determination of 'realness'.
407407
"""
408-
Base.real(
409-
R::Results;
410-
kwargs...,
411-
) = filter(r -> is_real(r; kwargs...), path_results(R))
408+
Base.real(R::Results; kwargs...) = filter(r -> is_real(r; kwargs...), path_results(R))
412409

413410
"""
414411
failed(result)

src/semialgebraic_sets.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,10 @@ function SemialgebraicSets.solve(
132132
hcsolver.excess_residual_tol,
133133
)
134134
# Only return real, non-singular solutions
135-
return real_solutions(results; real_atol = hcsolver.real_atol, real_rtol = hcsolver.real_rtol, only_nonsingular = true)
135+
return real_solutions(
136+
results;
137+
real_atol = hcsolver.real_atol,
138+
real_rtol = hcsolver.real_rtol,
139+
only_nonsingular = true,
140+
)
136141
end

0 commit comments

Comments
 (0)