Skip to content

Commit 833dd29

Browse files
authored
add contours_lines and classifiers to __attrs__ in RollPass (#243)
1 parent 8f6afb6 commit 833dd29

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pyroll/core/roll_pass/roll_pass.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ class InProfile(Profile, DiskElementUnit.DiskElement.InProfile, DeformationUnit.
236236
class OutProfile(Profile, DiskElementUnit.DiskElement.OutProfile, DeformationUnit.OutProfile):
237237
"""Represents an outgoing profile of a disk element unit."""
238238

239+
@property
240+
def __attrs__(self):
241+
return super().__attrs__ | {
242+
"contour_lines": self.contour_lines,
243+
"classifiers": self.classifiers,
244+
}
245+
239246
def _get_oriented_geom(self, geom):
240247
orientation = self.orientation
241248

0 commit comments

Comments
 (0)