本文整理汇总了Python中EnggUtils.generateOutputParTable方法的典型用法代码示例。如果您正苦于以下问题:Python EnggUtils.generateOutputParTable方法的具体用法?Python EnggUtils.generateOutputParTable怎么用?Python EnggUtils.generateOutputParTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EnggUtils
的用法示例。
在下文中一共展示了EnggUtils.generateOutputParTable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _produce_outputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generateOutputParTable [as 别名]
def _produce_outputs(self, difa, difc, tzero, tbl_name):
"""
Fills in the output properties as requested via the input
properties. Sets the output difz/difc/tzero values. It can
also produces a table with these parameters if required in the
inputs.
@param difa :: the DIFA GSAS parameter as fitted here
@param difc :: the DIFC GSAS parameter as fitted here
@param tzero :: the TZERO GSAS parameter as fitted here
@param tbl_name :: a table name, non-empty if a table workspace
should be created with the calibration parameters
"""
import EnggUtils
# mandatory outputs
self.setProperty('DIFA', difa)
self.setProperty('DIFC', difc)
self.setProperty('TZERO', tzero)
# optional outputs
if tbl_name:
EnggUtils.generateOutputParTable(tbl_name, difa, difc, tzero)
self.log().information("Output parameters added into a table workspace: %s" % tbl_name)
示例2: _produceOutputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generateOutputParTable [as 别名]
def _produceOutputs(self, difc, zero):
"""
Just fills in the output properties as requested
@param difc :: the difc GSAS parameter as fitted here
@param zero :: the zero GSAS parameter as fitted here
"""
import EnggUtils
self.setProperty('Difc', difc)
self.setProperty('Zero', zero)
# make output table if requested
tblName = self.getPropertyValue("OutputParametersTableName")
if '' != tblName:
EnggUtils.generateOutputParTable(tblName, difc, zero)
self.log().information("Output parameters added into a table workspace: %s" % tblName)
示例3: _produce_outputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generateOutputParTable [as 别名]
def _produce_outputs(self, difc, zero, fitted_peaks):
"""
Just fills in the output properties as requested
@param difc :: the difc GSAS parameter as fitted here
@param zero :: the zero GSAS parameter as fitted here
@param fitted_peaks :: table workspace with peak parameters (one peak per row)
"""
import EnggUtils
self.setProperty("Difc", difc)
self.setProperty("Zero", zero)
self.setProperty("FittedPeaks", fitted_peaks)
# make output table if requested
tblName = self.getPropertyValue("OutputParametersTableName")
if "" != tblName:
EnggUtils.generateOutputParTable(tblName, difc, zero)
self.log().information("Output parameters added into a table workspace: %s" % tblName)
示例4: _produce_outputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generateOutputParTable [as 别名]
def _produce_outputs(self, difc, zero, fitted_peaks):
"""
Fills in the output properties as requested via the input properties. Sets the output difc, and zero
values, and a table workspace with peaks information. It can also produces a table with the difc and
zero parameters if this is required in the inputs.
@param difc :: the difc GSAS parameter as fitted here
@param zero :: the zero GSAS parameter as fitted here
@param fitted_peaks :: table workspace with peak parameters (one peak per row)
"""
import EnggUtils
# mandatory outputs
self.setProperty('Difc', difc)
self.setProperty('Zero', zero)
self.setProperty('FittedPeaks', fitted_peaks)
# optional outputs
tbl_name = self.getPropertyValue("OutParametersTable")
if '' != tbl_name:
EnggUtils.generateOutputParTable(tbl_name, difc, zero)
self.log().information("Output parameters added into a table workspace: %s" % tbl_name)