Skip to content

Commit d655a1a

Browse files
committed
Corrected bug in export points in which if the point index is passed it will incorrectly index the 0 entry in the points class rather than the 0 entry in the point index passed to it in order to correctly export all the point data associated with the point meshes within the class object selected by the point index.
1 parent 8d9ce91 commit d655a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lyceanem/base_classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ def export_points(self, point_index=None):
237237
points = np.append(points, self.points[item].points, axis=0)
238238
point_data = {}
239239
for key in self.points[point_index[0]].point_data.keys():
240-
if len(self.points[0].point_data[key].shape) < 2:
240+
if len(self.points[point_index[0]].point_data[key].shape) < 2:
241241
point_data[key] = np.empty((0, 1))
242242
else:
243243
point_data[key] = np.empty(
244-
(0, self.points[0].point_data[key].shape[1])
244+
(0, self.points[point_index[0]].point_data[key].shape[1])
245245
)
246246
for item in point_index:
247247
point_data_element = np.array(self.points[item].point_data[key])

0 commit comments

Comments
 (0)