Skip to content

Commit

Permalink
Updated Tests and rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwar committed Jun 26, 2023
1 parent a7aa1d4 commit b6099f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion splinepy/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

@spline._new_core_if_modified
def insert_knots(self, parametric_dimension, knots, return_matrix=False):
def insert_knots(self, parametric_dimension, knots):
"""
Inserts knots.
Expand Down Expand Up @@ -169,6 +169,7 @@ def knot_insertion_matrix(
else:
matrix = np.zeros(data[1])
matrix[data[0][1][0], data[0][1][1]] = data[0][0]



data = splinepy_core.global_knot_insertion_matrix(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_kv_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ def test_insert_knot_with_matrix(self):
matrix_nurbs = self.nurbs.knot_insertion_matrix(
0, nurbs_knots_0
)
self.nurbs.insert_knots(
0, nurbs_knots_0
)
matrix_nurbs = (
self.nurbs.knot_insertion_matrix(
1, nurbs_knots_1
)
@ matrix_nurbs
)
self.nurbs.insert_knots(
0, nurbs_knots_0
)
self.nurbs.insert_knots(
1, nurbs_knots_1
)
Expand Down

0 comments on commit b6099f4

Please sign in to comment.