mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-19 10:37:12 +02:00
fixed python bindings - only read headers of modules that are in the roi
This commit is contained in:
14
python/tests/test_RawFile.py
Normal file
14
python/tests/test_RawFile.py
Normal file
@ -0,0 +1,14 @@
|
||||
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)
|
||||
|
Reference in New Issue
Block a user