Files
aare/python/tests/test_RawFile.py
Alice 9f8eee5d08
All checks were successful
Build on RHEL8 / build (push) Successful in 2m51s
Build on RHEL9 / build (push) Successful in 2m53s
fixed python bindings - only read headers of modules that are in the roi
2025-06-16 11:07:00 +02:00

14 lines
405 B
Python

import pytest
from aare import RawFile
@pytest.mark.files
def test_read_rawfile_with_roi(test_data_path):
# Starting with f1 there is now 7 frames left in the series of files
print(test_data_path)
with RawFile(test_data_path / "raw/SingleChipROI/Data_master_0.json") as f:
headers, frames = f.read()
assert headers.size == 10100
assert frames.shape == (10100, 256, 256)