Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/issues/test_issue876_pdb_PBC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python
from __future__ import print_function
import unittest
import pytraj as pt
from pytraj.utils import eq, aa_eq


class TestPBCFromPDB(unittest.TestCase):
def test_pbc(self):
traj = pt.load('data/small_pbc.pdb')
pt._verbose()
aa_eq(traj.unitcells[0], [51.263, 51.263, 51.263, 90.00, 90.00, 90.00])
assert traj.top.has_box() == True, 'Topology must has box'
assert traj.top.box.type == 'ortho', 'must be ortho box'


if __name__ == "__main__":
unittest.main()