mirror of
https://github.com/triqs/dft_tools
synced 2024-08-29 23:33:43 +02:00
Fixed tests that because of the new default NORMION value
This commit is contained in:
parent
183c115870
commit
b2b25a9fd0
@ -39,9 +39,9 @@ class TestParseGroups(arraytest.ArrayTestCase):
|
|||||||
conf_pars.parse_groups()
|
conf_pars.parse_groups()
|
||||||
res = conf_pars.groups
|
res = conf_pars.groups
|
||||||
expected = [{'index': 1, 'shells': [1, 2], 'ewindow': (-7.6, 3.0),
|
expected = [{'index': 1, 'shells': [1, 2], 'ewindow': (-7.6, 3.0),
|
||||||
'normalize': True, 'normion': False},
|
'normalize': True, 'normion': True},
|
||||||
{'index': 2, 'shells': [3], 'ewindow': (-1.6, 2.0),
|
{'index': 2, 'shells': [3], 'ewindow': (-1.6, 2.0),
|
||||||
'normalize': True, 'normion': False}]
|
'normalize': True, 'normion': True}]
|
||||||
self.assertListEqual(res, expected)
|
self.assertListEqual(res, expected)
|
||||||
|
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class TestParseInput(arraytest.ArrayTestCase):
|
|||||||
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 2, 'lshell': 1}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 3, 'lshell': 3}]
|
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 2, 'lshell': 1}, {'ion_list': array([0, 1, 2, 3]), 'user_index': 3, 'lshell': 3}]
|
||||||
|
|
||||||
Groups:
|
Groups:
|
||||||
[{'normalize': True, 'index': 1, 'ewindow': (-7.6, 3.0), 'normion': False, 'shells': [0, 1]}, {'normalize': True, 'index': 2, 'ewindow': (-1.6, 2.0), 'normion': False, 'shells': [2]}]"""
|
[{'normalize': True, 'index': 1, 'ewindow': (-7.6, 3.0), 'normion': True, 'shells': [0, 1]}, {'normalize': True, 'index': 2, 'ewindow': (-1.6, 2.0), 'normion': True, 'shells': [2]}]"""
|
||||||
|
|
||||||
self.assertEqual(res, expected)
|
self.assertEqual(res, expected)
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ Groups:
|
|||||||
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}]
|
[{'ion_list': array([4, 5, 6, 7]), 'user_index': 1, 'lshell': 2}]
|
||||||
|
|
||||||
Groups:
|
Groups:
|
||||||
[{'normalize': True, 'index': '1', 'ewindow': (-7.6, 3.0), 'shells': [0], 'normion': False}]"""
|
[{'normalize': True, 'index': '1', 'ewindow': (-7.6, 3.0), 'shells': [0], 'normion': True}]"""
|
||||||
|
|
||||||
self.assertEqual(res, expected)
|
self.assertEqual(res, expected)
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ class TestProjectorGroupTwoSite(mytest.MyTestCase):
|
|||||||
|
|
||||||
# Scenario 1
|
# Scenario 1
|
||||||
def test_ortho(self):
|
def test_ortho(self):
|
||||||
|
self.proj_gr.normion = False
|
||||||
self.proj_gr.orthogonalize()
|
self.proj_gr.orthogonalize()
|
||||||
|
|
||||||
dens_mat, overl = self.proj_sh.density_matrix(self.el_struct)
|
dens_mat, overl = self.proj_sh.density_matrix(self.el_struct)
|
||||||
|
Loading…
Reference in New Issue
Block a user