Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Apr 3, 2024
1 parent a4406da commit 015d2e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/treetensornetworks/ttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/test_itensornetwork.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 015d2e2

Please sign in to comment.