mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-02 00:21:32 +01:00
- seek to the edge of a file + read_into would select the wrong file - Visible for example in f.read_frame(index) in python Added fix, release notes and a small test. closes #371 Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
829 B
829 B
CtbRawFile
Read analog, digital and transceiver samples from a raw file
containing data from the Chip Test Board. Uses aare.transform to decode the
data into a format that the user can work with.
read_frame(index) reads the frame at the zero-based
index across the raw subfiles and advances the position to
index + 1. A subsequent read_frame() reads the
following frame, including across subfile boundaries.
import aare
from aare.transform import Mythen302Transform
my302 = Mythen302Transform(offset = 4)
with aare.CtbRawFile(fname, transform = my302) as f:
for header, data in f:
#do something with the dataCtbRawFile