DMSC Integration Testing

Last updated: December 16, 2025 22:41:25

Test: nexusfiles-scipp|tbl|tbl_read_monitor_data|BeamMonitor1

None

None

None

None

None

None

None

None

workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/tbl_999999_00009574.hdf')
monitor_type = ess.imaging.types.BeamMonitor1
check_monitor_data =

@pytest.mark.parametrize("monitor_type", [BeamMonitor1])
def test_tbl_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_type: type,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
result = workflow.compute(RawMonitor[SampleRun, monitor_type])

> check_monitor_data(result)

tests/nexusfiles-scipp/tbl/tbl_load_nexus_test.py:159:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

da =
Dimensions: Sizes[time:10545, frame_time:714, ]
Coordinates:
* frame_time int32 ... float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]



def _check_monitor_data(da: sc.DataArray) -> None:
if da.bins is not None:
assert da.dims == ("event_time_zero",)
assert "event_time_offset" in da.bins.coords
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords

assert "position" in da.coords
> assert "source_position" in da.coords
E AssertionError: assert 'source_position' in \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 10545) datetime64 [ns] [2025-12-07T22:59:25.840324306, 2025-12-07T22:59:25.911780699, ..., 2025-12-07T23:11:59.397490065, 2025-12-07T23:11:59.468933170]\n position: () vector3 [m] (0, 0, -14.8)\n
E + where \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 10545) datetime64 [ns] [2025-12-07T22:59:25.840324306, 2025-12-07T22:59:25.911780699, ..., 2025-12-07T23:11:59.397490065, 2025-12-07T23:11:59.468933170]\n position: () vector3 [m] (0, 0, -14.8)\n = \nDimensions: Sizes[time:10545, frame_time:714, ]\nCoordinates:\n* frame_time int32 [ns] (frame_time) [0, 100040, ..., 71228480, 71328520]\n* position vector3 [m] () (0, 0, -14.8)\n* time datetime64 [ns] (time) [2025-12-07T22:59:25.840324306, 2025-12-07T22:59:25.911780699, ..., 2025-12-07T23:11:59.397490065, 2025-12-07T23:11:59.468933170]\nData:\n float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]\n\n.coords

.tox/nexusfiles-scipp-tbl/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:37: AssertionError

workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/tbl_999999_00009427.hdf')
monitor_type = ess.imaging.types.BeamMonitor1
check_monitor_data =

@pytest.mark.parametrize("monitor_type", [BeamMonitor1])
def test_tbl_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_type: type,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
result = workflow.compute(RawMonitor[SampleRun, monitor_type])

> check_monitor_data(result)

tests/nexusfiles-scipp/tbl/tbl_load_nexus_test.py:159:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

da =
Dimensions: Sizes[time:6586, frame_time:714, ]
Coordinates:
* frame_time int32 ... float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]



def _check_monitor_data(da: sc.DataArray) -> None:
if da.bins is not None:
assert da.dims == ("event_time_zero",)
assert "event_time_offset" in da.bins.coords
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords

assert "position" in da.coords
> assert "source_position" in da.coords
E AssertionError: assert 'source_position' in \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 6586) datetime64 [ns] [2025-12-06T22:01:10.982137724, 2025-12-06T22:01:11.053597887, ..., 2025-12-06T22:09:01.578558553, 2025-12-06T22:09:01.650022441]\n position: () vector3 [m] (0, 0, -14.8)\n
E + where \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 6586) datetime64 [ns] [2025-12-06T22:01:10.982137724, 2025-12-06T22:01:11.053597887, ..., 2025-12-06T22:09:01.578558553, 2025-12-06T22:09:01.650022441]\n position: () vector3 [m] (0, 0, -14.8)\n = \nDimensions: Sizes[time:6586, frame_time:714, ]\nCoordinates:\n* frame_time int32 [ns] (frame_time) [0, 100040, ..., 71228480, 71328520]\n* position vector3 [m] () (0, 0, -14.8)\n* time datetime64 [ns] (time) [2025-12-06T22:01:10.982137724, 2025-12-06T22:01:11.053597887, ..., 2025-12-06T22:09:01.578558553, 2025-12-06T22:09:01.650022441]\nData:\n float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]\n\n.coords

.tox/nexusfiles-scipp-tbl/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:37: AssertionError

workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/tbl_999999_00009287.hdf')
monitor_type = ess.imaging.types.BeamMonitor1
check_monitor_data =

@pytest.mark.parametrize("monitor_type", [BeamMonitor1])
def test_tbl_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_type: type,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
result = workflow.compute(RawMonitor[SampleRun, monitor_type])

> check_monitor_data(result)

tests/nexusfiles-scipp/tbl/tbl_load_nexus_test.py:159:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

da =
Dimensions: Sizes[time:8457, frame_time:714, ]
Coordinates:
* frame_time int32 ... float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]



def _check_monitor_data(da: sc.DataArray) -> None:
if da.bins is not None:
assert da.dims == ("event_time_zero",)
assert "event_time_offset" in da.bins.coords
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords

assert "position" in da.coords
> assert "source_position" in da.coords
E AssertionError: assert 'source_position' in \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 8457) datetime64 [ns] [2025-12-05T22:26:58.109878561, 2025-12-05T22:26:58.181351034, ..., 2025-12-05T22:37:02.434850413, 2025-12-05T22:37:02.506320876]\n position: () vector3 [m] (0, 0, -14.8)\n
E + where \n frame_time: (frame_time: 714) int32 [ns] [0, 100040, ..., 71228480, 71328520]\n time: (time: 8457) datetime64 [ns] [2025-12-05T22:26:58.109878561, 2025-12-05T22:26:58.181351034, ..., 2025-12-05T22:37:02.434850413, 2025-12-05T22:37:02.506320876]\n position: () vector3 [m] (0, 0, -14.8)\n = \nDimensions: Sizes[time:8457, frame_time:714, ]\nCoordinates:\n* frame_time int32 [ns] (frame_time) [0, 100040, ..., 71228480, 71328520]\n* position vector3 [m] () (0, 0, -14.8)\n* time datetime64 [ns] (time) [2025-12-05T22:26:58.109878561, 2025-12-05T22:26:58.181351034, ..., 2025-12-05T22:37:02.434850413, 2025-12-05T22:37:02.506320876]\nData:\n float64 [au] (time, frame_time) [100, 100, ..., 100, 100] [100, 100, ..., 100, 100]\n\n.coords

.tox/nexusfiles-scipp-tbl/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:37: AssertionError

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None