本文整理汇总了Python中pipeline.Pipeline.set方法的典型用法代码示例。如果您正苦于以下问题:Python Pipeline.set方法的具体用法?Python Pipeline.set怎么用?Python Pipeline.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pipeline.Pipeline
的用法示例。
在下文中一共展示了Pipeline.set方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: bas
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import set [as 别名]
def bas(target, fluxcal, phasecal, fringefinder, bpcal, catlist, FLAG_INT,
FLAG_BATCH, FLAG_DEBUG, FLAG_SILENT, FLAG_LOG, converts,
StageSelection, confpath, conffile, inpath, inext, outpath, outprefix,
logpath, logfile, comment, timeformat, prompt):
# Get all those parameters from above ^
settings = locals()
# Inform the CASA logger of what's happening.
casalog.origin("bas")
casalog.post("Output from this task is not appended to the CASA log.",
priority="INFO")
# Make sure we can see all the files we need.
obit_path = "/home/rowell/src/obit/python"
parseltongue_path = "/usr/local/share/parseltongue/python"
sys.path.append(obit_path)
sys.path.append(parseltongue_path)
# Do what we came here to do.
p = Pipeline()
p.set(settings)
p.start()
# Return the settings.
s = p.settings
return s