Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tests failing due to round off error/finite precision #12

Open
jameskermode opened this issue Jun 30, 2015 · 0 comments
Open

Improve tests failing due to round off error/finite precision #12

jameskermode opened this issue Jun 30, 2015 · 0 comments

Comments

@jameskermode
Copy link
Member

Thanks to Pétur Bryde for reporting

======================================================================
FAIL: test_to_atoms_frac_pos (test_castep.TestCastepCell)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/petur/prog/QUIP/tests/test_castep.py", line 198, in test_to_atoms_frac_pos
    self.assertEqual([x.split() for x in c['POSITIONS_FRAC']], [x.split() for x in c2['POSITIONS_FRAC']])
  File "/home/petur/prog/QUIP/tests/quippytest.py", line 62, in assertEqual
    self.fail('%s != %s' % (a,b))
AssertionError: [['O', '0.414382', '0.259186', '0.792179'], ['O', '-0.259186', '0.155196', '1.458845'], ['O', '-0.155196', '-0.414382', '1.125512'], ['O', '0.259186', '0.414382', '-0.792179'], ['O', '-0.414382', '-0.155196', '-0.125512'], ['O', '0.155196', '-0.259186', '-0.458845'], ['Si', '0.474452', '0.000000', '0.666667'], ['Si', '0.000000', '0.474452', '0.333333'], ['Si', '-0.474452', '-0.474452', '0.000000']] != [['O', '0.414382', '0.259186', '0.792179'], ['O', '-0.259186', '0.155196', '1.458845'], ['O', '-0.155196', '-0.414382', '1.125512'], ['O', '0.259186', '0.414382', '-0.792179'], ['O', '-0.414382', '-0.155196', '-0.125512'], ['O', '0.155196', '-0.259186', '-0.458845'], ['Si', '0.474452', '-0.000000', '0.666667'], ['Si', '-0.000000', '0.474452', '0.333333'], ['Si', '-0.474452', '-0.474452', '0.000000']]

======================================================================
FAIL: testminim (test_potential.TestPotential_ElasticMinim)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/petur/prog/QUIP/tests/test_potential.py", line 5064, in testminim
    self.assertArrayAlmostEqual(self.at.lattice, self.lat_ref)
  File "/home/petur/prog/QUIP/tests/quippytest.py", line 91, in assertArrayAlmostEqual
    self.fail('Maximum abs difference between array elements is %e at location %r' % (absdiff.max(), loc))
AssertionError: Maximum abs difference between array elements is 4.937909e-07 at location [3, 3]

======================================================================
FAIL: test_md_velo.sh (test_shell_scripts.Test_TopLevel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/petur/prog/QUIP/tests/test_shell_scripts.py", line 47, in run_script
    self.fail()
AssertionError: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant