Skip to content

Commit

Permalink
fixup! Implement SplineStructure superclass of SplineObject
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB committed Aug 21, 2020
1 parent d7d2686 commit ce0aab0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions splipy/SplineObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def with_controlpoints(self, controlpoints, raw=False):
:param bool raw: If True, skip any control point reordering.
(For internal use.)
"""
controlpoints = controlpoints.reshape(self.shape + (-1,))
constructors = [c for c in SplineObject.__subclasses__() if c._intended_pardim == len(self.bases)]
if constructors:
constructor = constructors[0]
Expand Down

0 comments on commit ce0aab0

Please sign in to comment.