Files
BStrd/README.md
2021-09-08 12:30:54 +00:00

599 B

BStrd

Online analysis via bsread

Examples

Creating channels

from bstrd import BS, bsstream

pid = BS("pid")
trace = BS("SATES21-GES1:A1_VALUES")

with optional modulo and offset

inten = BS("SATFE10-PEPG046:FCUP-INTENSITY-CAL", modulo=10, offset=1)

Receiving data

Read from channel:

for _ in bsstream:
    val = trace.value
    print(val)

Read from data dict:

for data in bsstream:
    val = data["SATES21-GES1:A1_VALUES"]
    print(val)

Iterate a single channel:

for val in trace:
    print(val)