mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
precision for unit test set to 5.e-8
This commit is contained in:
parent
274f2752d0
commit
00be8bc06a
@ -17,7 +17,7 @@ from collections import defaultdict
|
|||||||
# O p t #
|
# O p t #
|
||||||
# ~#~#~ #
|
# ~#~#~ #
|
||||||
|
|
||||||
precision = 1.e-8
|
precision = 5.e-8
|
||||||
|
|
||||||
# A test get a geo file and a basis file.
|
# A test get a geo file and a basis file.
|
||||||
# A global dict containt the result for this test
|
# A global dict containt the result for this test
|
||||||
@ -31,6 +31,7 @@ precision = 1.e-8
|
|||||||
global has_hf_alredy
|
global has_hf_alredy
|
||||||
has_hf_alredy = False
|
has_hf_alredy = False
|
||||||
|
|
||||||
|
|
||||||
def init_folder(geo, basis, mult=1):
|
def init_folder(geo, basis, mult=1):
|
||||||
'''
|
'''
|
||||||
Take a geo in arg (aka a existing geo.xyz in test/)
|
Take a geo in arg (aka a existing geo.xyz in test/)
|
||||||
@ -48,7 +49,8 @@ def init_folder(geo, basis, mult=1):
|
|||||||
|
|
||||||
|
|
||||||
def get_error_message(l_exepected, l_cur):
|
def get_error_message(l_exepected, l_cur):
|
||||||
l_msg = ["Need {0} get {1}".format(i,j) for i,j in zip(l_exepected,l_cur)]
|
l_msg = ["Need {0} get {1} error is {2}".format(i, j, abs(i - j))
|
||||||
|
for i, j in zip(l_exepected, l_cur)]
|
||||||
return "\n".join(l_msg)
|
return "\n".join(l_msg)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user