From 9482630f0e53443371342e7f35a6dfa649f6614d Mon Sep 17 00:00:00 2001 From: Carlos Paniagua Date: Wed, 16 Oct 2024 20:19:13 -0400 Subject: [PATCH] fix: drop eval --- src/IceFloeTracker.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/IceFloeTracker.jl b/src/IceFloeTracker.jl index f879f9a7..3257c09b 100644 --- a/src/IceFloeTracker.jl +++ b/src/IceFloeTracker.jl @@ -110,7 +110,8 @@ function __init__() _modules = ["measure", "exposure"] for _module in _modules imported_module = pyimport_conda("skimage.$_module", "$(pkg)=$(version)") - reference_module = eval(Symbol("sk_$_module")) + + reference_module = getfield(Main, Symbol("sk_$_module")) copy!(reference_module, imported_module) end @@ -124,6 +125,7 @@ function __init__() return nothing end + include("regionprops.jl") include("segmentation_a_direct.jl") include("segmentation_b.jl")