Method: getCoords
special purpose getter for coords, creating objects if not present.
guid:
|
www.ccpn.ac.uk_Fogh_2011-04-11-17:36:15_00002
|
OpType:
|
get
|
OpSubType:
|
None
|
isQuery:
|
True
|
isAbstract:
|
False
|
Scope:
|
instance_level
|
Code:
|
structureEnsemble = dataDict['structureEnsemble']
atoms = structureEnsemble.orderedAtoms
coords = dataDict['coords']
if len(coords) < len(atoms):
missing = set(atoms).difference(x.atom for x in coords)
for atom in missing:
Coord(atom, model=self)
result = frozenset(coords)
|
|