本文整理匯總了Python中pyworkflow.em.data.Volume.copyInfo方法的典型用法代碼示例。如果您正苦於以下問題:Python Volume.copyInfo方法的具體用法?Python Volume.copyInfo怎麽用?Python Volume.copyInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyworkflow.em.data.Volume
的用法示例。
在下文中一共展示了Volume.copyInfo方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: createOutputStep
# 需要導入模塊: from pyworkflow.em.data import Volume [as 別名]
# 或者: from pyworkflow.em.data.Volume import copyInfo [as 別名]
def createOutputStep(self):
partSet = self.inputParticles.get()
vol = Volume()
vol.setFileName(self._getFileName("volume"))
vol.copyInfo(partSet)
self._defineOutputs(outputVolume=vol)
self._defineSourceRelation(self.inputParticles, vol)
示例2: createOutputStep
# 需要導入模塊: from pyworkflow.em.data import Volume [as 別名]
# 或者: from pyworkflow.em.data.Volume import copyInfo [as 別名]
def createOutputStep(self):
iterN = self.numberOfIterations.get()
partSet = self._getInputParticles()
numRun = self._getRun()
vol = Volume()
vol.setFileName(self._getFileName("volume",run=numRun, iter=iterN))
vol.copyInfo(partSet)
newPartSet = self._createSetOfParticles()
newPartSet.copyInfo(partSet)
self._fillDataFromIter(newPartSet, iterN)
self._defineOutputs(outputVolume=vol)
self._defineSourceRelation(self._getInputParticlesPointer(), vol)
self._defineOutputs(outputParticles=newPartSet)
self._defineTransformRelation(self._getInputParticlesPointer(), newPartSet)
示例3: createOutputStep
# 需要導入模塊: from pyworkflow.em.data import Volume [as 別名]
# 或者: from pyworkflow.em.data.Volume import copyInfo [as 別名]
def createOutputStep(self):
iterN = self.numberOfIterations.get()
partSet = self._getInputParticles()
numRun = self._getRun()
vol = Volume()
vol.setFileName(self._getFileName("volume",run=numRun, iter=iterN))
vol.copyInfo(partSet)
self._execEmanProcess(numRun, iterN)
newPartSet = self._createSetOfParticles()
newPartSet.copyInfo(partSet)
newPartSet.setAlignment(em.ALIGN_PROJ)
newPartSet.copyItems(partSet,
updateItemCallback=self._createItemMatrix,
itemDataIterator=self._iterTextFile(iterN))
self._defineOutputs(outputVolume=vol)
self._defineSourceRelation(self._getInputParticlesPointer(), vol)
self._defineOutputs(outputParticles=newPartSet)
self._defineTransformRelation(self._getInputParticlesPointer(), newPartSet)
示例4: createOutputStep
# 需要導入模塊: from pyworkflow.em.data import Volume [as 別名]
# 或者: from pyworkflow.em.data.Volume import copyInfo [as 別名]
def createOutputStep(self):
iterN = self.numberOfIterations.get()
partSet = self._getInputParticles()
numRun = self._getRun()
vol = Volume()
vol.setFileName(self._getFileName("mapFull",run=numRun, iter=iterN))
halfMap1 = self._getFileName("mapEvenUnmasked", run=numRun)
halfMap2 = self._getFileName("mapOddUnmasked", run=numRun)
vol.setHalfMaps([halfMap1, halfMap2])
vol.copyInfo(partSet)
newPartSet = self._createSetOfParticles()
newPartSet.copyInfo(partSet)
self._fillDataFromIter(newPartSet, iterN)
self._defineOutputs(outputVolume=vol)
self._defineSourceRelation(self._getInputParticlesPointer(), vol)
self._defineOutputs(outputParticles=newPartSet)
self._defineTransformRelation(self._getInputParticlesPointer(), newPartSet)
示例5: createOutputStep
# 需要導入模塊: from pyworkflow.em.data import Volume [as 別名]
# 或者: from pyworkflow.em.data.Volume import copyInfo [as 別名]
def createOutputStep(self):
volSet = self.inputVolumes.get()
if self._isSingleInput():
vol = Volume()
vol.copyInfo(volSet)
if self.doResize:
vol.setSamplingRate(self.samplingRate)
vol.setFileName(self.outputStk)
self._defineOutputs(outputVol=vol)
else:
volumes = self._createSetOfVolumes()
volumes.copyInfo(volSet)
if self.doResize:
volumes.setSamplingRate(self.samplingRate)
for i, vol in enumerate(volSet):
j = i + 1
vol.setSamplingRate(self.samplingRate)
vol.setLocation(j, self.outputStk)
volumes.append(vol)
self._defineOutputs(outputVol=volumes)
self._defineTransformRelation(volSet, self.outputVol)