From 2930fe07b8abcc79371d3a7364708f38a436f4a1 Mon Sep 17 00:00:00 2001 From: GiovanniCanali Date: Thu, 4 Dec 2025 14:29:52 +0100 Subject: [PATCH] fix order in spline tests --- tests/test_model/test_spline.py | 2 +- tests/test_model/test_spline_surface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_model/test_spline.py b/tests/test_model/test_spline.py index 8c806580b..b47ea8d30 100644 --- a/tests/test_model/test_spline.py +++ b/tests/test_model/test_spline.py @@ -7,7 +7,7 @@ # Utility quantities for testing -order = torch.randint(1, 8, (1,)).item() +order = torch.randint(3, 6, (1,)).item() n_ctrl_pts = torch.randint(order, order + 5, (1,)).item() n_knots = order + n_ctrl_pts diff --git a/tests/test_model/test_spline_surface.py b/tests/test_model/test_spline_surface.py index 0c288f932..dee57173c 100644 --- a/tests/test_model/test_spline_surface.py +++ b/tests/test_model/test_spline_surface.py @@ -7,7 +7,7 @@ # Utility quantities for testing -orders = [random.randint(1, 8) for _ in range(2)] +orders = [random.randint(3, 6) for _ in range(2)] n_ctrl_pts = random.randint(max(orders), max(orders) + 5) n_knots = [orders[i] + n_ctrl_pts for i in range(2)]