From 8c31858607e27885a8086ce03f1a1aec251df254 Mon Sep 17 00:00:00 2001 From: Shashi Gowda Date: Tue, 14 May 2024 17:45:54 -0400 Subject: [PATCH 1/2] Wrong metadata access --- src/complex.jl | 2 +- test/complex.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/complex.jl b/src/complex.jl index d1e7b4769..cd6c44607 100644 --- a/src/complex.jl +++ b/src/complex.jl @@ -21,7 +21,7 @@ symtype(a::ComplexTerm{T}) where T = Complex{T} istree(a::ComplexTerm) = true operation(a::ComplexTerm{T}) where T = Complex{T} arguments(a::ComplexTerm) = [a.re, a.im] -metadata(a::ComplexTerm) = a.re.metadata +metadata(a::ComplexTerm) = metadata(a.re) function similarterm(t::ComplexTerm, f, args, symtype; metadata=nothing) if f <: Complex diff --git a/test/complex.jl b/test/complex.jl index 47a10b9c6..1b4b7646f 100644 --- a/test/complex.jl +++ b/test/complex.jl @@ -34,4 +34,6 @@ end @test_nowarn substitute(z1, z=>1.0im) @test metadata(z1) == unwrap(z1.im).metadata @test metadata(z1) == unwrap(z1.re).metadata + z2 = 1.0 + z*im + @test isnothing(metadata(unwrap(z1.re))) end From 0018e492b2203ff3bb8b5d4a7407786df63d8c14 Mon Sep 17 00:00:00 2001 From: Shashi Gowda Date: Thu, 16 May 2024 10:49:58 -0400 Subject: [PATCH 2/2] lowerbound fixed SU --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index a41f01e53..5e95d407d 100644 --- a/Project.toml +++ b/Project.toml @@ -83,7 +83,7 @@ SpecialFunctions = "2" StaticArrays = "1.1" SymbolicIndexingInterface = "0.3.14" SymbolicLimits = "0.2.0" -SymbolicUtils = "1.4" +SymbolicUtils = "1.7" julia = "1.10" [extras]