当前位置: 首页>>代码示例>>Python>>正文


Python Volume.copyInfo方法代码示例

本文整理汇总了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)
开发者ID:I2PC,项目名称:scipion,代码行数:9,代码来源:protocol_reconstruct.py

示例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)
开发者ID:azazellochg,项目名称:scipion,代码行数:19,代码来源:protocol_refineasy.py

示例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)
开发者ID:denisfortun,项目名称:scipion,代码行数:23,代码来源:protocol_refineasy.py

示例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)
开发者ID:I2PC,项目名称:scipion,代码行数:24,代码来源:protocol_refineasy.py

示例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)
开发者ID:josegutab,项目名称:scipion,代码行数:24,代码来源:protocol_crop_resize.py


注:本文中的pyworkflow.em.data.Volume.copyInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。