Skip to content

Commit 8c0aacc

Browse files
author
tibut
committed
fixed examples and tests
1 parent 017c174 commit 8c0aacc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

bitflow-example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from bitflow.sinksteps import TerminalOut
77
from bitflow.marshaller import CsvMarshaller
88
from bitflow.pipeline import Pipeline
9-
from bitflow.processingstep import SimpleLinePlot
9+
from bitflow.steps.plotprocessingsteps import PlotLinePlot
1010
from bitflow.source import FileSource
1111

1212

@@ -23,12 +23,12 @@ def main():
2323
pipeline = Pipeline()
2424

2525
# add processingsteps to pipeline
26-
pipeline.add_processing_step(SimpleLinePlot("pkg_out_1000-1100"))
26+
pipeline.add_processing_step(PlotLinePlot(metric_names="pkg_out_1000-1100"))
2727
# add terminal output to pipeline
2828
pipeline.add_processing_step(TerminalOut())
2929

3030
# start pipeline
31-
pipeline.add_processing_step(SimpleLinePlot("pkg_out_1000-1100"))
31+
pipeline.add_processing_step(PlotLinePlot(metric_names="pkg_out_1000-1100"))
3232
pipeline.add_processing_step(TerminalOut())
3333
pipeline.start()
3434

download-data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def main():
4949

5050
# INSERT DOWNLOAD HOST
5151
download_host=""
52-
download_port=5025
52+
download_port=5012
5353
out_file = "/tmp/test_filea.txt"
5454
serials = ["66"]
5555

@@ -67,7 +67,6 @@ def main():
6767
download_source = DownloadSource(host=download_host,
6868
port=download_port,
6969
pipeline=pipeline,
70-
marshaller=CsvMarshaller(),
7170
buffer_size=2048)
7271
download_source.start()
7372

provide-data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main():
3939
# port to provide data on
4040
listen_port=5012
4141
# file to provide via port
42-
in_file = "/tmp/test_filea.txt"
42+
in_file = "testing/testing_file_in.txt"
4343

4444
# prepare ListenSink
4545
ls = ListenSink(host="localhost",

tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import time
66
import unittest
77
import os
8+
from bitflow.script_parser import *
89
from bitflow.sinksteps import *
910
from bitflow.processingstep import *
1011
from bitflow.marshaller import CsvMarshaller

0 commit comments

Comments
 (0)