Skip to content

Commit 9aea300

Browse files
Jammy2211Jammy2211
authored andcommitted
tree returns
1 parent fc953e6 commit 9aea300

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

autoarray/structures/triangles/coordinate_array.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def centres(self) -> jnp.ndarray:
115115
)
116116
return centres
117117

118-
@cached_property
118+
@property
119119
def vertex_coordinates(self) -> np.ndarray:
120120
"""
121121
The vertices of the triangles as an Nx3x2 array.
@@ -130,7 +130,7 @@ def vertex_coordinates(self) -> np.ndarray:
130130
dtype=np.int32,
131131
)
132132

133-
@cached_property
133+
@property
134134
def triangles(self) -> np.ndarray:
135135
"""
136136
The vertices of the triangles as an Nx3x2 array.
@@ -157,7 +157,7 @@ def triangles(self) -> np.ndarray:
157157
axis=1,
158158
)
159159

160-
@cached_property
160+
@property
161161
def flip_mask(self) -> jnp.ndarray:
162162
"""
163163
A mask for the triangles that are flipped.
@@ -169,7 +169,7 @@ def flip_mask(self) -> jnp.ndarray:
169169
mask = ~mask
170170
return mask
171171

172-
@cached_property
172+
@property
173173
def flip_array(self) -> jnp.ndarray:
174174
"""
175175
An array of 1s and -1s to flip the triangles.
@@ -247,7 +247,7 @@ def neighborhood(self) -> "CoordinateArrayTriangles":
247247
x_offset=self.x_offset,
248248
)
249249

250-
@cached_property
250+
@property
251251
def _vertices_and_indices(self):
252252
flat_triangles = self.triangles.reshape(-1, 2)
253253
vertices, inverse_indices = jnp.unique(

0 commit comments

Comments
 (0)