本文整理汇总了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)