sgnts.sinks
¶
NullSeriesSink
dataclass
¶
Bases: TSSink
A series sink that does precisely nothing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
verbose
|
bool
|
bool, print frames as they pass through the internal pad |
False
|
Source code in sgnts/sinks/null.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
internal()
¶
Print frames if verbose.
Source code in sgnts/sinks/null.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
DumpSeriesSink
dataclass
¶
Bases: TSSink
A sink element that dumps time series data to a txt file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fname
|
str
|
str, output file name |
'out.txt'
|
verbose
|
bool
|
bool, be verbose |
False
|
Source code in sgnts/sinks/dump.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
internal()
¶
Write out time-series data.
Source code in sgnts/sinks/dump.py
57 58 59 60 61 62 63 64 65 66 67 68 |
|
write_to_file(buf)
¶
Write time series data to txt file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
buf
|
SeriesBuffer, the buffer with time series data to write out |
required |
Source code in sgnts/sinks/dump.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|