我有兴趣开发自记文件管道。Pweave可以和Ruffus一起玩吗?
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'",)
或许有一种解决方法?
嗨杰里米,作为Pweave的作者我很高兴看到,利奥能够解决这个问题。我希望你不要介意我为你的问题添加了pweave标签。 – 2012-02-23 06:38:01