Skip to content

Commit

Permalink
Merge pull request #1705 from kwaters4/sp2_NN_bond
Browse files Browse the repository at this point in the history
Fix bug of missing sp2 N-N bond data
  • Loading branch information
shyuep committed Dec 11, 2019
2 parents b1050a3 + a432e7a commit d281986
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pymatgen/core/bond_lengths.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
],
"bond_order": 1.0
},
{
"ref": "M. Carlotti, J. W. C. Johns, A. Trombetti, Canadian Journal of Physics, 1974, 52:340-344",
"length": 1.25,
"elements": [
"N",
"N"
],
"bond_order": 2.0
},
{
"ref": "",
"length": 1.1,
Expand Down
2 changes: 2 additions & 0 deletions pymatgen/core/tests/test_bonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def test_get_bond_order(self):
self.assertAlmostEqual(get_bond_order(
'C', 'Br', 2, tol=0.5, default_bl=1.9), 0.894736842105263)
self.assertRaises(ValueError, get_bond_order, 'C', 'Br', 1.9)
self.assertAlmostEqual(get_bond_order(
'N', 'N', 1.25), 2)


if __name__ == "__main__":
Expand Down

0 comments on commit d281986

Please sign in to comment.