View job log here
AssertionError: assert np.int64(0) > 0
+ where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nData:\n int64 <no unit> () 0\n\n.value
+ where <scipp.DataArray>\nDimensions: Sizes[]\nData:\n int64 <no unit> () 0\n\n = sum()
+ where sum = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n int64 <no unit> (event_time_zero) []\n\n.sum
+ where <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n int64 <no unit> (event_time_zero) []\n\n = size()
+ where size = <scipp.core.bins.Bins object at 0x7f206cd3f530>.size
+ where <scipp.core.bins.Bins object at 0x7f206cd3f530> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n DataArrayView <no unit> (event_time_zero) binned data: dim='event', content=DataArray(\n dims=(event: 0),\n data=float32[counts],\n coords={'event_time_offset':int32[ns], 'event_id':int32})\n\n.bins
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:25: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f2071cbf920>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016843.hdf')
detector_name = 'multiblade_detector'
check_detector_events = <function _check_detector_events at 0x7f20a1e23f60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_detector_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
result = workflow.compute(NeXusData[NXdetector, SampleRun])
> check_detector_events(result)
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da = <scipp.DataArray>
Dimensions: Sizes[event_time_zero:0, ]
Coordinates:
* event_time_zero datetime64 ... dims=(event: 0),
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().value > 0
E AssertionError: assert np.int64(0) > 0
E + where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nData:\n int64 <no unit> () 0\n\n.value
E + where <scipp.DataArray>\nDimensions: Sizes[]\nData:\n int64 <no unit> () 0\n\n = sum()
E + where sum = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n int64 <no unit> (event_time_zero) []\n\n.sum
E + where <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n int64 <no unit> (event_time_zero) []\n\n = size()
E + where size = <scipp.core.bins.Bins object at 0x7f206cd3f530>.size
E + where <scipp.core.bins.Bins object at 0x7f206cd3f530> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero datetime64 [ns] (event_time_zero) []\nData:\n DataArrayView <no unit> (event_time_zero) binned data: dim='event', content=DataArray(\n dims=(event: 0),\n data=float32[counts],\n coords={'event_time_offset':int32[ns], 'event_id':int32})\n\n.bins
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:25: AssertionError