本文整理汇总了Python中fireworks.core.launchpad.LaunchPad.reset方法的典型用法代码示例。如果您正苦于以下问题:Python LaunchPad.reset方法的具体用法?Python LaunchPad.reset怎么用?Python LaunchPad.reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fireworks.core.launchpad.LaunchPad
的用法示例。
在下文中一共展示了LaunchPad.reset方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: LaunchPad
# 需要导入模块: from fireworks.core.launchpad import LaunchPad [as 别名]
# 或者: from fireworks.core.launchpad.LaunchPad import reset [as 别名]
if args.command == 'version':
print FW_VERSION
else:
if not args.launchpad_file and os.path.exists('my_launchpad.yaml'):
args.launchpad_file = 'my_launchpad.yaml'
if args.launchpad_file:
lp = LaunchPad.from_file(args.launchpad_file)
else:
args.loglvl = 'CRITICAL' if args.silencer else args.loglvl
lp = LaunchPad(logdir=args.logdir, strm_lvl=args.loglvl)
if args.command == 'reset':
lp.reset(args.password)
elif args.command == 'detect_fizzled':
# TODO: report when fixed
print lp.detect_fizzled(args.time, args.fix)
elif args.command == 'detect_unreserved':
# TODO: report when fixed
print lp.detect_unreserved(args.time, args.fix)
elif args.command == 'add':
# TODO: make this cleaner, e.g. make TAR option explicit
# fwf = Workflow.from_FireWork(FireWork.from_file(args.wf_file))
# lp.add_wf(fwf)
try:
fwf = Workflow.from_FireWork(FireWork.from_file(args.wf_file))
示例2: setup
# 需要导入模块: from fireworks.core.launchpad import LaunchPad [as 别名]
# 或者: from fireworks.core.launchpad.LaunchPad import reset [as 别名]
def setup():
launchpad = LaunchPad(name='fireworks_test', strm_lvl='ERROR')
launchpad.reset('', require_password=False)
return launchpad
示例3: setup
# 需要导入模块: from fireworks.core.launchpad import LaunchPad [as 别名]
# 或者: from fireworks.core.launchpad.LaunchPad import reset [as 别名]
def setup():
launchpad = LaunchPad(name="fireworks_test", strm_lvl="ERROR")
launchpad.reset("", require_password=False)
return launchpad