Skip to content

Commit

Permalink
Update src/ensemble/basic_ensemble_solve.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Oct 10, 2023
1 parent c933d7f commit d05c8a3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/ensemble/basic_ensemble_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@ struct EnsembleSerial <: BasicEnsembleAlgorithm end

function merge_stats(us)
st = Iterators.filter(!isnothing, (x.stats for x in us))
try
return reduce(merge, st)
catch e
if isa(e, MethodError)
# there were no stats or they didn't have a merge method
return nothing
else
rethrow(e)
end
end
reduce(merge, st)

Check warning on line 28 in src/ensemble/basic_ensemble_solve.jl

View check run for this annotation

Codecov / codecov/patch

src/ensemble/basic_ensemble_solve.jl#L26-L28

Added lines #L26 - L28 were not covered by tests
end

function __solve(prob::AbstractEnsembleProblem,
Expand Down

0 comments on commit d05c8a3

Please sign in to comment.