Data Model version 2.1.2
Acknowledgements
Diagram | Class Map | Attribute Map | Method Map | Help | License
Home | Package | Class | Attribute | Method: { prev | next }

Method: purge


    Clear unnecessary adidtional data (Coords and arrays identical to default)

guid: www.ccpn.ac.uk_Fogh_2011-03-30-17:58:41_00003
OpType: other
OpSubType: None
isQuery: False
isAbstract: False
Scope: instance_level
Code: for dataMatrix in self.dataMatrices:
  data = dataMatrix.__dict__['data']
  if data and data.count(dataMatrix.defaultValue) == len(data):
    dataMatrix.resetData()

for model in self.models:
  for coord in model.__dict__['coords']:
    coord.delete()
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Thu Oct 2 16:09:30 2014    from data model package  ccp.api.molecule.MolStructure.StructureEnsemble   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk