Пример #1
0
 def __getstate__(self):
     """ __getstate__ returns a cleaned dictionary
         only called while class is pickled
     """
     mycontent = PartModuleVis.__getstate__(self)#copy.copy(self.__dict__)
     del mycontent['_Part2DRawVis__lastColorConnection']
     _infoer.function = str(self.__getstate__)
     _infoer.write("storing dict %s " % str(self.params.__dict__) )
     return mycontent
Пример #2
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartDomainSurfaceVis__myCollect']
     del mycontent['_PartDomainSurfaceVis__myColors']
     return mycontent
Пример #3
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartMagmaTraceVis__myCollect']
     del mycontent['_PartMagmaTraceVis__myColors']
     return mycontent
Пример #4
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartDomainLinesVis__myCollect']
     return mycontent
Пример #5
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartClipIntervalVis__myCollect']
     del mycontent['_PartClipIntervalVis__myColors']
     return mycontent
Пример #6
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartIsoCutterVis__myCollect']
     del mycontent['_PartIsoCutterVis__myColors']
     return mycontent
Пример #7
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartVectorFieldVis__myCollect']
     del mycontent['_PartVectorFieldVis__myColors']
     return mycontent
Пример #8
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartVectorFieldVis__myCollect']
     del mycontent['_PartVectorFieldVis__myColors']
     return mycontent
Пример #9
0
 def __getstate__(self):
     mycontent = PartModuleVis.__getstate__(self)
     del mycontent['_PartDomainLinesVis__myCollect']
     return mycontent