Skip to content

Commit 1fe4402

Browse files
committed
update test_pdb2sqlAlchemy
1 parent e93729b commit 1fe4402

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

test/test_pdb2sqlAlchemy.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,16 @@ def test_alchemy(self):
1414
db = pdb2sql_alchemy(self.pdb)
1515
print('ALCH %f' % (time() - t0))
1616

17-
# extract the xyz position of all VAL and LEU resiues of chain A but
18-
# not the H atoms
19-
# chainID='A',resName=['VAL','LEU'],no_name=['H'])
17+
# extract the xyz position
2018
xyz = db.get('x,y,z', model=0)
2119

2220
# put the data back
23-
# ,chainID='A',resName=['VAL','LEU'],no_name=['H'])
2421
db.update('x,y,z', xyz)
2522

26-
# extract atoms
27-
#atoms = db.get(chainID='A',resName=['VAL','LEU'],no_name=['H'])
28-
29-
# for at in atoms:
30-
# print(at.name,at.x,at.y,at.z)
23+
# extract atoms but not 'H' atoms
24+
atoms = db.get(chainID='A',resName=['THR','GLN'],no_element=['H'], model=0)
25+
for at in atoms:
26+
print(at.resName, at.name, at.x, at.y, at.z, at.element)
3127

3228
def setUp(self):
3329
self.pdb = 'pdb/test_model.pdb'

0 commit comments

Comments
 (0)