Data Model version 2.1.2

Method: getIsStdCyclic


    getter for derived attribute isStdCyclic

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:23:34_00048
OpType: get
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: molResLinks = self.molResLinks
maxDiff = len(self.molResidues)-1
spareLinks = len(molResLinks) - maxDiff -1

for molResLink in molResLinks:
  endA, endB = molResLink.molResLinkEnds
  codeA = endA.linkCode
  codeB = endB.linkCode
  diff = endA.molResidue.serial - endB.molResidue.serial
  if not ( (diff == -1 and codeA == 'next' and codeB == 'prev') or
            (diff == 1 and codeB == 'next' and codeA == 'prev' ) or
            (diff == maxDiff and codeA == 'next' and codeB == 'prev') or
            (diff == -maxDiff and codeB == 'next' and codeA == 'prev' ) ):
    spareLinks = spareLinks -1

if spareLinks < 0:
  result = False
else:
  result = True
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Mon Mar 2 17:24:39 2015    from data model package  ccp.api.molecule.Molecule.Molecule   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk