diff --git a/src/treetensornetworks/ttn.jl b/src/treetensornetworks/ttn.jl index 09364103..286fbe70 100644 --- a/src/treetensornetworks/ttn.jl +++ b/src/treetensornetworks/ttn.jl @@ -26,10 +26,6 @@ end const TTN = TreeTensorNetwork -function ttn(itensor_network::ITensorNetwork, ortho_center::Vector) - return ttn(itensor_network, ortho_center) -end - function data_graph_type(G::Type{<:TTN}) return data_graph_type(fieldtype(G, :itensor_network)) end diff --git a/test/test_itensornetwork.jl b/test/test_itensornetwork.jl index c6d56b84..92111869 100644 --- a/test/test_itensornetwork.jl +++ b/test/test_itensornetwork.jl @@ -170,7 +170,7 @@ using Test: @test, @test_broken, @testset ψ = random_itensornetwork(elt, g; link_space) @test eltype(ψ[first(vertices(ψ))]) == elt ψ = random_itensornetwork(g; link_space) - @test elt(ψ[first(vertices(ψ))]) == Float64 + @test eltype(ψ[first(vertices(ψ))]) == Float64 ψ = ITensorNetwork(elt, undef, g; link_space) @test eltype(ψ[first(vertices(ψ))]) == elt ψ = ITensorNetwork(undef, g)