Files
aare/docs/src/python/file/pyCtbRawFile.rst
T
Erik Fröjdhandmazzol_a b558f1146b
Build on RHEL9 / build (push) Successful in 2m49s
Build on RHEL8 / build (push) Successful in 3m25s
Run tests using data on local RHEL8 / build (push) Successful in 4m27s
Build on local RHEL8 / build (push) Successful in 3m6s
Fixed seek bug in CtbRawFile (#373)
- 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>
2026-09-17 08:09:12 +02:00

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 data

CtbRawFile