Пример #1
0
    def updateAttributes(self):
        childCell = self.mitosisSteppable.childCell
        parentCell = self.mitosisSteppable.parentCell

        childCell.dict["InitialVolume"] = childCell.volume
        childCell.dict["DivideVolume"] = 2. * childCell.volume

        print "Child cell ID: %s" % childCell.id
        print "Parent cell ID: %s" % parentCell.id

        parentCell.targetVolume = parentCell.volume
        childCell.targetVolume = childCell.volume

        parentCell.targetSurface = parentCell.surface
        childCell.targetSurface = childCell.surface

        childCell.type = parentCell.type
        childCell.lambdaVolume = parentCell.lambdaVolume
        childCell.lambdaSurface = parentCell.lambdaSurface

        bionetAPI.copyBionetworkFromParent(parentCell, childCell)
 def updateAttributes(self):
     childCell = self.mitosisSteppable.childCell
     parentCell = self.mitosisSteppable.parentCell
             
     childCell.dict["InitialVolume"] = childCell.volume
     childCell.dict["DivideVolume"] = 2.*childCell.volume
     
     print "Child cell ID: %s" % childCell.id
     print "Parent cell ID: %s" % parentCell.id
     
     parentCell.targetVolume = parentCell.volume;
     childCell.targetVolume = childCell.volume;
     
     parentCell.targetSurface = parentCell.surface;
     childCell.targetSurface = childCell.surface;
     
     childCell.type = parentCell.type;
     childCell.lambdaVolume = parentCell.lambdaVolume;
     childCell.lambdaSurface = parentCell.lambdaSurface;
     
     bionetAPI.copyBionetworkFromParent( parentCell, childCell )
Пример #3
0
    def updateAttributes(self):
        childCell = self.mitosisSteppable.childCell
        parentCell = self.mitosisSteppable.parentCell

        childCell.dict["InitialVolume"] = childCell.volume
        childCell.dict["DivideVolume"] = 2. * childCell.volume

        print "Child cell ID: %s" % childCell.id
        print "Parent cell ID: %s" % parentCell.id

        parentCell.targetVolume = parentCell.volume
        childCell.targetVolume = childCell.volume

        parentCell.targetSurface = parentCell.surface
        childCell.targetSurface = childCell.surface

        childCell.type = parentCell.type
        childCell.lambdaVolume = parentCell.lambdaVolume
        childCell.lambdaSurface = parentCell.lambdaSurface

        #NOTE: This call should be after we set basic properties for childCell.
        #      Otherwise soslib may pull up wrong model and associate it with cell
        bionetAPI.copyBionetworkFromParent(parentCell, childCell)
 def updateAttributes(self):
     childCell = self.mitosisSteppable.childCell
     parentCell = self.mitosisSteppable.parentCell
             
     childCell.dict["InitialVolume"] = childCell.volume
     childCell.dict["DivideVolume"] = 2.*childCell.volume
     
     print "Child cell ID: %s" % childCell.id
     print "Parent cell ID: %s" % parentCell.id
     
     parentCell.targetVolume = parentCell.volume;
     childCell.targetVolume = childCell.volume;
     
     parentCell.targetSurface = parentCell.surface;
     childCell.targetSurface = childCell.surface;
     
     childCell.type = parentCell.type;
     childCell.lambdaVolume = parentCell.lambdaVolume;
     childCell.lambdaSurface = parentCell.lambdaSurface;
     
     #NOTE: This call should be after we set basic properties for childCell.
     #      Otherwise soslib may pull up wrong model and associate it with cell
     bionetAPI.copyBionetworkFromParent( parentCell, childCell )