Skip to content

Commit

Permalink
bug: Fix a bug introduced in Julia 1.11 (Base.MainInclude.eval was …
Browse files Browse the repository at this point in the history
…deprecated)
  • Loading branch information
ma-sadeghi committed Jan 21, 2025
1 parent b79ce51 commit 277ae8d
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 277ae8d

Please sign in to comment.