本文整理汇总了Python中EnggUtils.generate_output_param_table方法的典型用法代码示例。如果您正苦于以下问题:Python EnggUtils.generate_output_param_table方法的具体用法?Python EnggUtils.generate_output_param_table怎么用?Python EnggUtils.generate_output_param_table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EnggUtils
的用法示例。
在下文中一共展示了EnggUtils.generate_output_param_table方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _produce_outputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generate_output_param_table [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.generate_output_param_table(tbl_name, difa, difc, tzero)
self.log().information("Output parameters added into a table workspace: %s" % tbl_name)
示例2: _produce_outputs
# 需要导入模块: import EnggUtils [as 别名]
# 或者: from EnggUtils import generate_output_param_table [as 别名]
def _produce_outputs(self, difa, difc, zero, fitted_peaks):
"""
Just fills in the output properties as requested
@param difa :: the DIFA GSAS parameter as fitted here
@param difc :: the DIFC GSAS parameter as fitted here
@param zero :: the TZERO GSAS parameter as fitted here
@param fitted_peaks :: table workspace with peak parameters (one peak per row)
"""
import EnggUtils
self.setProperty('DIFA', difa)
self.setProperty('DIFC', difc)
self.setProperty('TZERO', zero)
self.setProperty('FittedPeaks', fitted_peaks)
# make output table if requested
table_name = self.getPropertyValue("OutputParametersTableName")
if '' != table_name:
EnggUtils.generate_output_param_table(table_name, difa, difc, zero)
self.log().information("Output parameters added into a table workspace: %s" % table_name)