Data Model version 2.1.2

Method: getChemAtoms


    getter for derived link chemAtoms

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:23:37_00018
OpType: get
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: chemComp = self.topObject.chemComp
name = self.name
subType = self.subType

result = chemComp.findAllChemAtoms(name=name, subType=subType)

if not result:
  chemAtomSet = chemComp.findFirstChemAtomSet(name=name, subType=subType)

  if chemAtomSet is None:
    raise ApiError(" no ChemAtom or ChemAtomSet found for: %s, %s, %s, %s"
                   % (chemComp.molType, chemComp.ccpCode, name, subType))

  else:
    chemAtomSets = [chemAtomSet]
    chemAtoms = []
    for cas in chemAtomSets:
      chemAtomSets.extend(cas.chemAtomSets)
      chemAtoms.extend(cas.chemAtoms)
  #
  result = frozenset(chemAtoms)
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Mon Mar 2 17:24:35 2015    from data model package  ccp.api.nmr.NmrReference.ChemAtomNmrRef   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk