You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: add a small fake detector run and a real-data test marker (IN-1.4) #6
Real runs are 500 MB or more and cannot go into the repo or CI.
Proposed solution
A conftest.py fixture writes a small master file and data file into tmp_path, with the same HDF5 paths as the real EIGER2 files.
Item
Value
Frames
200 frames of 64 x 64, uint32, compressed with hdf5plugin.Bitshuffle()
Data link
external link from entry/data/data_000001 to the data file
Omega
entry/sample/goniometer/omega, 0 to 19.9 in 0.1 steps
Wavelength
0.9537 Å
Detector distance
20 mm (stored in metres: 0.020)
Pixel size
0.6 mm (stored in metres: 0.0006)
Beam centre
image centre, (32, 32)
Pixel mask
a few bad pixels; those pixels are 4294967295 in the frames
The distance and pixel size are test values, not the real detector's. They put the ice rings inside the small image (the 3.669 Å ring has a radius of about 8.9 px).
Fixture variants:
good: frames with spots
ice: frames with a ring at an ice d-spacing
empty: noise only
Real-data tests get @pytest.mark.realdata and are skipped unless the environment variable DIFFCHOOSER_TEST_DATA points to a folder with runs.
Done when
Fixture used by reader, geometry, display and labeling tests
pytest passes with and without DIFFCHOOSER_TEST_DATA
changed the title [-]test: synthetic NXmx test run and real-data test marker (IN-1.4)[/-][+]test: add a small fake detector run and a real-data test marker (IN-1.4)[/+]on Dec 1, 2026
Activity
[-]test: synthetic NXmx test run and real-data test marker (IN-1.4)[/-][+]test: add a small fake detector run and a real-data test marker (IN-1.4)[/+]