migrated tags for tests and added missing raw files (#206)
All checks were successful
Build on RHEL8 / build (push) Successful in 2m57s
Build on RHEL9 / build (push) Successful in 2m59s

- No changes or evaluation of existing tests
- Tags for including tests that require data is changed to
**[.with-data]** and **--with-data** for C++ and python respectively
- Minor update to docs
- Added missing files to the test data repo
This commit is contained in:
Erik Fröjdh
2025-06-26 17:11:20 +02:00
committed by GitHub
parent 30822d9c5f
commit 6ec8fbee72
13 changed files with 59 additions and 58 deletions

View File

@ -2,7 +2,7 @@ import pytest
import numpy as np
from aare import JungfrauDataFile
@pytest.mark.files
@pytest.mark.withdata
def test_jfungfrau_dat_read_number_of_frames(test_data_path):
with JungfrauDataFile(test_data_path / "dat/AldoJF500k_000000.dat") as dat_file:
assert dat_file.total_frames == 24
@ -14,7 +14,7 @@ def test_jfungfrau_dat_read_number_of_frames(test_data_path):
assert dat_file.total_frames == 113
@pytest.mark.files
@pytest.mark.withdata
def test_jfungfrau_dat_read_number_of_file(test_data_path):
with JungfrauDataFile(test_data_path / "dat/AldoJF500k_000000.dat") as dat_file:
assert dat_file.n_files == 4
@ -26,7 +26,7 @@ def test_jfungfrau_dat_read_number_of_file(test_data_path):
assert dat_file.n_files == 7
@pytest.mark.files
@pytest.mark.withdata
def test_read_module(test_data_path):
"""
Read all frames from the series of .dat files. Compare to canned data in npz format.
@ -50,7 +50,7 @@ def test_read_module(test_data_path):
assert np.all(ref_header == header)
assert np.all(ref_data == data)
@pytest.mark.files
@pytest.mark.withdata
def test_read_half_module(test_data_path):
# Read all frames from the .dat file
@ -71,7 +71,7 @@ def test_read_half_module(test_data_path):
assert np.all(ref_data == data)
@pytest.mark.files
@pytest.mark.withdata
def test_read_single_chip(test_data_path):
# Read all frames from the .dat file