From afa6c8222e7b5402218266b94c2a3c65dbdc48cb Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 8 Sep 2024 17:45:41 +0200 Subject: [PATCH] Hotfix symbolic_to_float --- src/utils.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index c1aeaaa0b..f2abd0cb7 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -433,9 +433,5 @@ function symbolic_to_float end symbolic_to_float(x::Num) = symbolic_to_float(unwrap(x)) symbolic_to_float(x::Number) = x function symbolic_to_float(x::SymbolicUtils.BasicSymbolic) - if _x isa Number - return _x - else - substitute(x,Dict()) - end + substitute(x,Dict()) end