mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Remove tail from test
This commit is contained in:
parent
57840986bc
commit
60482613a1
@ -73,12 +73,6 @@ for d in SK.deg_shells[0]:
|
|||||||
for i in range(len(normalized_gfs)):
|
for i in range(len(normalized_gfs)):
|
||||||
for j in range(i+1,len(normalized_gfs)):
|
for j in range(i+1,len(normalized_gfs)):
|
||||||
assert_arrays_are_close(normalized_gfs[i].data, normalized_gfs[j].data, 1.e-5)
|
assert_arrays_are_close(normalized_gfs[i].data, normalized_gfs[j].data, 1.e-5)
|
||||||
# the tails have to be compared using a relative error
|
|
||||||
for o in range(normalized_gfs[i].tail.order_min,normalized_gfs[i].tail.order_max+1):
|
|
||||||
if np.abs(normalized_gfs[i].tail[o][0,0]) < 1.e-10:
|
|
||||||
continue
|
|
||||||
assert np.max(np.abs((normalized_gfs[i].tail[o]-normalized_gfs[j].tail[o])/(normalized_gfs[i].tail[o][0,0]))) < 1.e-5, \
|
|
||||||
"tails are different"
|
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Second test #
|
# Second test #
|
||||||
|
Loading…
Reference in New Issue
Block a user