File tree Expand file tree Collapse file tree
autoarray/structures/triangles Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments