Skip to content

Commit

Permalink
export logger, abstract oneplus
Browse files Browse the repository at this point in the history
  • Loading branch information
d9w committed Sep 5, 2020
1 parent c10bbe4 commit 6783275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/logger.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export CambrianLogger
import Logging: Info, Warn, shouldlog, min_enabled_level, catch_exceptions, handle_message

struct CambrianLogger <: AbstractLogger
Expand Down
2 changes: 1 addition & 1 deletion src/oneplus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function OnePlusEvo{T}(cfg::NamedTuple, fitness::Function;
OnePlusEvo(cfg, logger, population, fitness, 0)
end

function oneplus_populate(e::OnePlusEvo)
function oneplus_populate(e::AbstractEvolution)
p1 = max_selection(e.population)
e.population[1] = p1
for i in 2:e.config.n_population
Expand Down

0 comments on commit 6783275

Please sign in to comment.