Skip to content

Commit

Permalink
fixed pirrol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Oct 4, 2018
1 parent c4381ea commit 9451110
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/unittest/test_pirrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ def test_symlab(self):
self.assertEqual(self.pirrol.SymLab, symlab_test)

def test_csm_coef(self):
csm_coef_test = [5.33114175e-07, 9.99989431e+01, 9.99989431e+01, 1.00000000e+02,
1.00000000e+02, 1.00000000e+02, 1.00000000e+02, 1.00000000e+02,
9.99989431e+01, 5.33113642e-07]
csm_coef_test = [5.331142e-07, 9.999894e+01, 1.000000e+02, 1.000000e+02,
1.000000e+02, 1.000000e+02, 9.999894e+01, 5.331136e-07,
9.999894e+01, 1.000000e+02]

np.testing.assert_allclose(csm_coef_test, self.pirrol.csm_coef, rtol=1e-6)

Expand Down Expand Up @@ -314,7 +314,7 @@ def test_wf_SOEVs_a(self):
np.testing.assert_allclose(wf_soevs_a_test, self.pirrol.wf_SOEVs_a, rtol=1e-6)

def test_grim_coef(self):
grim_coef_test = [1.48087240e-08, 6.38290380e+01, 6.38290380e+01, 7.53467283e+01,
7.53467283e+01, 5.90925836e+01, 5.90925836e+01, 7.53467283e+01,
6.38290380e+01, 1.48087095e-08]
grim_coef_test = [1.480872e-08, 6.382904e+01, 7.534673e+01, 5.909258e+01,
5.909258e+01, 7.534673e+01, 6.382904e+01, 1.480871e-08,
6.382904e+01, 7.534673e+01]
np.testing.assert_allclose(grim_coef_test, self.pirrol.grim_coef, rtol=1e-6)

0 comments on commit 9451110

Please sign in to comment.