From ea52128923b61dff2b46fa3a00171dfa2ae84688 Mon Sep 17 00:00:00 2001 From: Deepak Date: Sun, 2 Jan 2022 18:35:23 -0600 Subject: [PATCH] Corrects failing test by converting pt to numpy array --- tests/model/test_unrestricted_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/test_unrestricted_model.py b/tests/model/test_unrestricted_model.py index 86371ee..d21b700 100644 --- a/tests/model/test_unrestricted_model.py +++ b/tests/model/test_unrestricted_model.py @@ -13,7 +13,7 @@ def test_unrestricted_model_cost_and_jac_single(): model = UnrestrictedModel(1) measured_v = 0.000191292 # from dipole with p=(0, 0, 2) at (1, 2, 4) with w = 1 dot = DotMeasurement(measured_v, (1, 2, 0), 5) - pt = [0, 0, 2, 2, 2, 4, 2] + pt = numpy.array([0, 0, 2, 2, 2, 4, 2]) cost_function = model.costs([dot])