Skip to content

Commit

Permalink
fixed other random broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Nov 7, 2023
1 parent 50d8a69 commit 992d851
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/test_bopfoxparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def test_energy(parser):
sec_model = sec_method.tb.model[0]
assert sec_model.name == 'test'
assert sec_model.hamiltonian[0].name == 'ddsigma'
assert sec_model.hamiltonian[1].atom_labels == ['W', 'W']
assert (sec_model.hamiltonian[1].atom_labels == ['W', 'W']).all()
assert sec_model.hamiltonian[2].functional_form == 'screenedpowerlaw'
assert sec_model.hamiltonian[3].x_bopfox_cutoff == approx(4.4)
assert sec_model.hamiltonian[4].x_bopfox_dcutoff == approx(1.3)
assert sec_model.hamiltonian[5].x_bopfox_valence == ['d', 'd']
assert sec_model.hamiltonian[6].atom_labels == ['W', 'Mo']
assert (sec_model.hamiltonian[6].atom_labels == ['W', 'Mo']).all()
assert sec_model.hamiltonian[7].parameters[0] == approx(0.8359765)
assert sec_model.repulsion[2].atom_labels == ['Mo', 'Mo']
assert (sec_model.repulsion[2].atom_labels == ['Mo', 'Mo']).all()
assert sec_model.repulsion[0].x_bopfox_cutoff == approx(5.0)
assert sec_model.repulsion[1].parameters[2] == approx(-2.909290858)
assert sec_model.repulsion[2].functional_form == 'env_Yukawa'
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dlpolyparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_0(parser):
assert sec_atom_parameters[0].x_dl_poly_nrept == 500
sec_model = sec_method.force_field.model[0]
assert len(sec_model.contributions) == 3
assert sec_model.contributions[0].atom_labels == ['Na+', 'Na+']
assert (sec_model.contributions[0].atom_labels == ['Na+', 'Na+']).all()
assert sec_model.contributions[1].functional_form == 'Born-Huggins-Meyer'
assert sec_model.contributions[2].parameters[1] == approx(3.1545)

Expand Down Expand Up @@ -91,7 +91,7 @@ def test_1(parser):

sec_model = archive.run[0].method[0].force_field.model[0]
assert len(sec_model.contributions) == 1
assert sec_model.contributions[0].atom_labels == ['Al', 'Al']
assert (sec_model.contributions[0].atom_labels == ['Al', 'Al']).all()
assert sec_model.contributions[0].functional_form == 'Sutton-Chen'
assert sec_model.contributions[0].parameters[4] == approx(16.399)

Expand Down

0 comments on commit 992d851

Please sign in to comment.