我有興趣開發自記文件管道。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