def clean(name, ask=True, **kwargs):
"""
Remove an experiment.
:param name: experiment name (or absolute path to experiment)
:param ask: ask confirmation
:param kwargs: simulation keyword arguments (see the documentation for more information)
"""
path = kwargs.get('path')
console = kwargs.get('console')
if console is None or not any([i['name'] == name and i['status'] == 'PENDING' for i in console.tasklist.values()]):
logger.debug(" > Cleaning folder...")
with hide(*HIDDEN_ALL):
local("rm -rf {}".format(path))
return "Cleaned"
评论列表
文章目录