【发布时间】:2012-02-06 05:10:26
【问题描述】:
我对开发自我记录的管道很感兴趣。
Pweave and Ruffus
==============================================================
**Let's see if Pweave and ruffus can play nice**
<<load_imports>>=
import time
from ruffus import *
@
**Do this**
<<task1>>=
task1_param = [
[ None, 'job1.stage1'], # 1st job
[ None, 'job2.stage1'], # 2nd job
]
@files(task1_param)
def first_task(no_input_file, output_file):
open(output_file, "w")
@
我感觉 Ruffus 装饰器正在抛弃 Pweave:
$ Pweave ruffus.Pnw
Processing chunk 1 named load_imports
Processing chunk 2 named task1
<type 'exceptions.TypeError'>
("unsupported operand type(s) for +: 'NoneType' and 'str'",)
也许有解决方法?
【问题讨论】:
-
嗨 Jeremy,作为 Pweave 的作者,我很高兴看到 Leo 能够解决这个问题。我希望你不介意我在你的问题中添加了 pweave 标签。
标签: python pipeline literate-programming pweave ruffus