DMSC Integration Testing

Last updated: March 23, 2026 07:06:10

Test: nexusfiles-scipp|bifrost|bifrost_read_detector_data|all_detectors

View job log here


workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00019320.hdf')
check_detector_events =

def test_bifrost_read_detector_data__all_detectors(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
check_detector_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
detectors = sciline.compute_mapped(workflow, NeXusData[NXdetector, SampleRun])

assert not detectors.empty
for detector in detectors:
> check_detector_events(detector)

tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

da =
Dimensions: Sizes[event_time_zero:11201, ]
Coordinates:
* event_time_zero datetime64 ...(event: 4445778),
data=float32[counts],
coords={'event_time_offset':int32[ns], 'event_id':int32})



def _check_detector_events(da: sc.DataArray) -> None:
assert "event_time_offset" in da.bins.coords
assert "event_id" in da.bins.coords
assert "event_time_zero" in da.coords
> assert da.bins.size().sum() > 0
^^^^^^^^^^^^^^^^^^^^^^^^
E scipp._scipp.core.UnitError: Expected unit None, got dimensionless.

.tox/nexusfiles-scipp-bifrost/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:25: UnitError