Skip to content

Commit

Permalink
add getters for fold axis/limb profiles for builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Oct 21, 2024
1 parent 5ee1de5 commit 4e73489
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ def __init__(
self.axis_profile_type = axis_profile_type
self.limb_profile_type = limb_profile_type

@property
def fold_axis_rotation(self):
if self.fold.fold_axis_rotation is None:
self.set_fold_axis()
return self.fold.fold_axis_rotation

@property
def fold_limb_rotation(self):
_axis = self.fold.fold_axis # get axis to make sure its initialised
if self.fold.fold_limb_rotation is None:
self.set_fold_limb_rotation()
return self.fold.fold_limb_rotation

def set_fold_axis(self):
"""calculates the fold axis/ fold axis rotation and adds this to the fold"""
kwargs = self.kwargs
Expand Down

0 comments on commit 4e73489

Please sign in to comment.