Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfothergill committed Apr 27, 2021
1 parent 2740b48 commit c8b3fa6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mbuild/tests/test_compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,17 +1162,12 @@ def test_from_pybel_molecule(self, extension):
pybel = import_('pybel')
chol = list(pybel.readfile(extension,
get_fn('cholesterol.{}'.format(extension))))[0]
# TODO: Actually store the box information
cmpd = mb.Compound()
cmpd.from_pybel(chol)
assert chol.OBMol.NumAtoms() == cmpd.n_particles
assert chol.OBMol.NumBonds() == cmpd.n_bonds
first_atom = chol.OBMol.GetAtom(1)
assert np.allclose(cmpd[0].pos, [first_atom.GetX()/10, first_atom.GetY()/10, first_atom.GetZ()/10])
#assert np.allclose(box.lengths,
# [chol.unitcell.GetA()/10, chol.unitcell.GetB()/10,
# chol.unitcell.GetC()/10],
# rtol=1e-3)

@pytest.mark.parametrize('test_smiles', [
"CCO",
Expand Down

0 comments on commit c8b3fa6

Please sign in to comment.