Source code for ewoksmx.tests.conftest
import pytest
from esrf_pathlib import ESRFPath
[docs]
@pytest.fixture
def test_list_input_master_path():
# Fine-sliced reference data
data_dir = ESRFPath(
"/data/scisoft/pxsoft/data/WORKFLOW_TEST_DATA/blc16578/id30a1/20251027/RAW_DATA/Sample-1-2-03/run_09_MXPressA/run_09_05_characterisation"
)
if not data_dir.exists():
pytest.skip(f"Required path not found: {data_dir}")
list_master = [
"ref-Sample-1-2-03_9_1_5_1_master.h5",
"ref-Sample-1-2-03_9_2_5_1_master.h5",
"ref-Sample-1-2-03_9_3_5_1_master.h5",
"ref-Sample-1-2-03_9_4_5_1_master.h5",
]
list_input_master_path = []
for master_filename in list_master:
master_path = data_dir / master_filename
list_input_master_path.append(master_path)
return list_input_master_path
[docs]
@pytest.fixture
def test_aggregated_hdf5_path():
data_path = ESRFPath(
"/data/scisoft/pxsoft/data/WORKFLOW_TEST_DATA/blc16578/id30a1/20251027/RAW_DATA/Sample-1-2-03/run_09_MXPressA/run_09_05_characterisation/ref-fineslice_aggregated_1_master.h5"
)
if not data_path.exists():
pytest.skip(f"Required path not found: {data_path}")
return data_path
[docs]
@pytest.fixture
def test_metadata():
data_collection = {
"beamline": "id30a1",
"is_finesliced": True,
"detector_type": "pilatus4_4m",
"wavelength": 0.965458,
"detector_distance": 286.2875,
"beam_position_x": 1023.2,
"beam_position_y": 1143.9,
"num_wedges": 4,
"rotation_angle_between_wedges": 90,
"oscillation_width": 0.1,
"num_images_per_wedge": 10,
}
processing_plan = {}
workflow_parameters = {}
metadata = {
"data_collection": data_collection,
"processing_plan": processing_plan,
"workflow_parameters": workflow_parameters,
}
return metadata