Skip to content

Commit

Permalink
Apply scalartype changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 15, 2024
1 parent 21505ff commit 33adbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/planar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33adbc1

Please sign in to comment.