
19 Mar
2015
19 Mar
'15
1:23 p.m.
On Mar 19, 2015, at 1:16 PM, "Cruz, Phil (NIH/NIAID) [C]" <phil.cruz@nih.gov> wrote:
numAtoms = len(openModels.list(modelTypes=[Molecule])[0].atoms)
Because of the "[0]" subscript in the above, you are only getting the first Molecule model in the list. Try this: numAtoms = sum([len(m.atoms) for m in openModels.list(modelTypes=[Molecule])]) --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu