From b99bf4e92912f4ad0020f79d6b222a3d6593514f Mon Sep 17 00:00:00 2001 From: Gerry Chen Date: Fri, 27 Aug 2021 11:23:38 -0400 Subject: [PATCH] add and fix constructor argument order --- python/gtsam/preamble/basis.h | 2 ++ python/gtsam/tests/test_basis.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/gtsam/preamble/basis.h b/python/gtsam/preamble/basis.h index d07a75f6f..56a07cfdd 100644 --- a/python/gtsam/preamble/basis.h +++ b/python/gtsam/preamble/basis.h @@ -10,3 +10,5 @@ * Without this they will be automatically converted to a Python object, and all * mutations on Python side will not be reflected on C++. */ + +#include diff --git a/python/gtsam/tests/test_basis.py b/python/gtsam/tests/test_basis.py index 944bdd9f3..0df9a80b0 100644 --- a/python/gtsam/tests/test_basis.py +++ b/python/gtsam/tests/test_basis.py @@ -25,7 +25,7 @@ class TestBasis(GtsamTestCase): noise = gtsam.noiseModel.Unit.Create(1) def testBasis(fitter, basis, f=f): data = {x: f(x) for x in datax} - fit = fitter(N, data, noise) + fit = fitter(data, noise, N) coeff = fit.parameters() interpy = basis.WeightMatrix(N, interpx) @ coeff np.testing.assert_almost_equal(interpy, np.array([f(x) for x in interpx]), decimal=7)