Skip to content

Commit

Permalink
Use "map"-filter to fix resolving_points
Browse files Browse the repository at this point in the history
Assignment in generator comprehension was not working in Julia 0.6:
https://gist.github.com/tkf/ca556aa6fb83bb6a2d8c450571fed428/a2d527b24644eeedf0f0f3c8992e320ec8e19712
  • Loading branch information
tkf committed Jul 29, 2018
1 parent bbd25ba commit ab49988
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/codim1/resolve_point.jl
Expand Up @@ -23,20 +23,17 @@ function resolving_points(
warn_exceptions = (LinAlg.SingularException,),
exception_handler = default_resolve_exception_handler(warn_exceptions),
)
local point
return (
point for interval in special_points(solver, args...)
if try
point = resolve_point(interval, solver)
true
Iterators.filter(
point -> point !== nothing,
try
resolve_point(interval, solver)
catch err
# [[../continuations/branching.jl::SingularException]]
if ! exception_handler(err, interval)
rethrow()
end
false
end
)
nothing
end for interval in special_points(solver, args...))
end

resolved_points(solver::BifurcationSolver, args...; kwargs...) =
Expand Down

0 comments on commit ab49988

Please sign in to comment.