From 33adbc11c593d980057b352ebbd8d0031a80e47c Mon Sep 17 00:00:00 2001 From: lkdvos Date: Fri, 15 Mar 2024 16:24:21 +0100 Subject: [PATCH] Apply scalartype changes to tests --- test/planar.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/planar.jl b/test/planar.jl index d7edf146..c9b8cc54 100644 --- a/test/planar.jl +++ b/test/planar.jl @@ -12,13 +12,13 @@ function force_planar(V::GradedSpace) return GradedSpace((c ⊠ PlanarTrivial() => dim(V, c) for c in sectors(V))..., isdual(V)) end force_planar(V::ProductSpace) = mapreduce(force_planar, ⊗, V) -function force_planar(tsrc::TensorMap{ComplexSpace}) +function force_planar(tsrc::TensorMap{<:Any,ComplexSpace}) tdst = TensorMap(undef, scalartype(tsrc), force_planar(codomain(tsrc)) ← force_planar(domain(tsrc))) copyto!(blocks(tdst)[PlanarTrivial()], blocks(tsrc)[Trivial()]) return tdst end -function force_planar(tsrc::TensorMap{<:GradedSpace}) +function force_planar(tsrc::TensorMap{<:Any,<:GradedSpace}) tdst = TensorMap(undef, scalartype(tsrc), force_planar(codomain(tsrc)) ← force_planar(domain(tsrc))) for (c, b) in blocks(tsrc)