Skip to content

Commit

Permalink
More type stability
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 24, 2023
1 parent 6dd8e7a commit 27dcc04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SymbolicRegression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 27dcc04

Please sign in to comment.