Skip to content

Commit

Permalink
Update test_econf_embd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed May 14, 2024
1 parent c309cf1 commit 4f8175f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tests/common/test_econf_embd.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def test_fe(self):
def test_fe_flatten(self):
res = make_econf_embedding(["Fe"], flatten=True)["Fe"]
# fmt: off
expected_res = [2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
expected_res = [2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
# fmt: on
self.assertEqual(list(res), expected_res)

def test_dict(self):
res = electronic_configuration_embedding["Fe"]
# fmt: off
expected_res = [2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
expected_res = [2,2,2,2,2,2,2,2,2,2,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
# fmt: on
self.assertEqual(list(res), expected_res)

0 comments on commit 4f8175f

Please sign in to comment.