Skip to content

Commit

Permalink
Replace access by field by accessor function.
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fishman <[email protected]>
  • Loading branch information
b-kloss and mtfishman authored Feb 1, 2024
1 parent 616ccae commit 6fdc0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treetensornetworks/projttns/projttnsum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on_edge(P::ProjTTNSum) = on_edge(terms(P)[1])
nsite(P::ProjTTNSum) = nsite(terms(P)[1])

function set_nsite(Ps::ProjTTNSum, nsite)
return ProjTTNSum(map(M -> set_nsite(M, nsite), Ps.terms))
return ProjTTNSum(map(p -> set_nsite(p, nsite), terms(Ps)))
end

underlying_graph(P::ProjTTNSum) = underlying_graph(terms(P)[1])
Expand Down

0 comments on commit 6fdc0e6

Please sign in to comment.