Skip to content

Commit 975a62b

Browse files
committed
fix: getboundary now returns the correct CTMRG tensors
1 parent 43525e1 commit 975a62b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/boundaries/corner/cornermethod.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ function getboundary(corners::Corners, i...)
9292

9393
(x, y) = to_indices(C1.data, i)
9494

95-
x1 = firstindex(x)
96-
y1 = firstindex(y)
97-
x2 = lastindex(x)
98-
y2 = lastindex(y)
95+
x1 = first(x)
96+
y1 = first(y)
97+
x2 = last(x)
98+
y2 = last(y)
9999

100100
c1 = C1[x1 - 1, y1 - 1]
101101
c2 = C2[x2 + 1, y1 - 1]
@@ -110,10 +110,10 @@ function getboundary(edges::Edges, i...)
110110

111111
(x, y) = to_indices(T1.data, i)
112112

113-
x1 = firstindex(x)
114-
y1 = firstindex(y)
115-
x2 = lastindex(x)
116-
y2 = lastindex(y)
113+
x1 = first(x)
114+
y1 = first(y)
115+
x2 = last(x)
116+
y2 = last(y)
117117

118118
@views begin
119119
t1s = T1[x1:x2, y1 - 1]

0 commit comments

Comments
 (0)