From b6099f4c6df69447cb7a25be69a74141279c6cce Mon Sep 17 00:00:00 2001 From: jzwar Date: Mon, 26 Jun 2023 09:55:09 +0200 Subject: [PATCH] Updated Tests and rebased --- splinepy/bspline.py | 3 ++- tests/test_kv_manipulation.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/splinepy/bspline.py b/splinepy/bspline.py index 48a8bd416..53041c9c5 100644 --- a/splinepy/bspline.py +++ b/splinepy/bspline.py @@ -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. @@ -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( diff --git a/tests/test_kv_manipulation.py b/tests/test_kv_manipulation.py index b40c3ffd6..b53673ff6 100644 --- a/tests/test_kv_manipulation.py +++ b/tests/test_kv_manipulation.py @@ -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 )