From 27dcc04be3d87d0114c854fd9054cffaab4613ef Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Sun, 24 Dec 2023 01:55:27 +0000 Subject: [PATCH] More type stability --- src/SymbolicRegression.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SymbolicRegression.jl b/src/SymbolicRegression.jl index 4fb55344d..c018508f4 100644 --- a/src/SymbolicRegression.jl +++ b/src/SymbolicRegression.jl @@ -603,7 +603,7 @@ function _equation_search( # Start a population on every process # Store the population, hall of fame WorkerOutputType = if parallelism == :serial - Tuple{Population,HallOfFame,RecordType,Float64} + Tuple{Population{T,L},HallOfFame{T,L},RecordType,Float64} elseif parallelism == :multiprocessing Future else @@ -831,8 +831,8 @@ function _equation_search( else worker_output[j][i] end - cur_pop::Population - best_seen::HallOfFame + cur_pop::Population{T,L} + best_seen::HallOfFame{T,L} cur_record::RecordType cur_num_evals::Float64 returnPops[j][i] = copy(cur_pop)