Method: newCoord
Factory function to generate Coord. Since Coords are no longer explicitly stored, serves to preserve legacy code, and effectively functions as a setter.
guid:
|
www.ccpn.ac.uk_Fogh_2011-03-22-17:23:27_00031
|
OpType:
|
new
|
OpSubType:
|
None
|
isQuery:
|
False
|
isAbstract:
|
False
|
Scope:
|
instance_level
|
Code:
|
model = attrlinks.get('model')
for coord in self.__dict__['coords'].values():
if coord.__dict__['model'] is model:
result = coord
break
else:
result = Coord(self, **attrlinks)
|
|