我試圖運行一些簡單的圖形,使用noflo-filesystem和noflo-csv讀取CSV文件,解析並將其寫入文件。 問題是程序等待的東西,我不知道如何提供:noflo無法關閉執行
graph.fbp
Read(filesystem/ReadFile) OUT -> CSV ParseCSV(csv/ConvertCsvToMatrix)
ParseCSV OUT -> IN Write(filesystem/WriteFile)
'dump.csv' -> FILENAME Write(filesystem/WriteFile)
'data.csv' -> In Read
當我運行
.\node_modules\.bin\noflo-nodejs --graph graphs\graph.fbp --batch --register=false --debug
我得到:
DATA -> FILENAME Write() CONN
DATA -> FILENAME Write() DATA
DATA -> FILENAME Write() DISC
DATA -> IN Read() CONN
DATA -> IN Read() DATA
DATA -> IN Read() DISC
DATA -> ENCODING Read() CONN
DATA -> ENCODING Read() DATA
DATA -> ENCODING Read() DISC
Read() OUT -> CSV ParseCSV() CONN
Read() OUT -> CSV ParseCSV() < ..\python_code\web_app\TimeSeries.csv
Read() OUT -> CSV ParseCSV() DATA
Read() OUT -> CSV ParseCSV() > ..\python_code\web_app\TimeSeries.csv
Read() OUT -> CSV ParseCSV() DISC
ParseCSV() OUT -> IN Write() CONN
ParseCSV() OUT -> IN Write() DATA
然後程序掛起。
我試圖IN端口養活Write
的使用就像一個字符串:
Read(filesystem/ReadFile) OUT -> CSV ParseCSV(csv/ConvertCsvToMatrix)
'some text' -> IN Write(filesystem/WriteFile)
'dump.csv' -> FILENAME Write(filesystem/WriteFile)
'data.csv' -> In Read
而且這工作得很好:
DATA -> IN Write() CONN
DATA -> IN Write() DATA
DATA -> IN Write() DISC
DATA -> FILENAME Write() CONN
DATA -> FILENAME Write() DATA
DATA -> FILENAME Write() DISC
DATA -> IN Read() CONN
DATA -> IN Read() DATA
DATA -> IN Read() DISC
DATA -> ENCODING Read() CONN
DATA -> ENCODING Read() DATA
DATA -> ENCODING Read() DISC
會有人這麼好心勸我怎麼能調試它?