Skip to content

Commit

Permalink
Merge pull request #40 from ma-sadeghi/bug/eval-julia11
Browse files Browse the repository at this point in the history
Hotfix: `Base.MainInclude.eval` was deprecated and breaks `circuit_evolution_batch`
  • Loading branch information
MaximeVH authored Jan 21, 2025
2 parents b79ce51 + 277ae8d commit 5dbb084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Miscellaneous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ end
# https://github.com/MilesCranmer/SymbolicRegression.jl/blob/master/src/Configure.jl
function import_module_on_workers(procs)
@everywhere procs begin
Base.MainInclude.eval(:(using EquivalentCircuits))
Core.eval(Core.Main, :(using EquivalentCircuits))
end
end


function disable_logging_distributed(level::Logging.LogLevel, procs::Vector{Int})
@everywhere procs begin
Base.MainInclude.eval(:(using Logging))
Core.eval(Core.Main, :(using Logging))
disable_logging($level) # Use the variable level here
end
end

0 comments on commit 5dbb084

Please sign in to comment.