Corrects failing test by converting pt to numpy array
All checks were successful
gitea-physics/pdme/pipeline/head This commit looks good

This commit is contained in:
Deepak Mallubhotla 2022-01-02 18:35:23 -06:00
parent b8bbdf29f4
commit ea52128923
Signed by: deepak
GPG Key ID: 64BF53A3369104E7

View File

@ -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])