workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00004626.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
Test: nexusfiles-scipp|odin|odin_read_monitor_data|beam_monitor_2
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00004472.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00004328.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00004184.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00004049.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003905.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003770.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003626.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003491.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003365.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003221.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00003086.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002942.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002798.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002640.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002622.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002550.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002550.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002536.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002487.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002478.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002396.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002276.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002150.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00002033.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001916.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001799.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001745.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001745.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001682.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001565.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001520.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001520.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001520.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001520.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001511.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001439.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001322.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001205.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00001088.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000971.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000863.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000737.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000692.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000611.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000467.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000332.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_odin_999999_00000188.hdf')
monitor_name = 'beam_monitor_2'
check_monitor_data =
@pytest.mark.parametrize(
"monitor_name", ["beam_monitor_1", "beam_monitor_2", "beam_monitor_3"]
)
def test_odin_read_monitor_data(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
monitor_name: str,
check_monitor_data: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusName[FrameMonitor0]] = monitor_name
monitor = workflow.compute(RawMonitor[SampleRun, FrameMonitor0])
> check_monitor_data(monitor)
tests/nexusfiles-scipp/odin/odin_load_nexus_test.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
da =
Dimensions: Sizes[time:0, frame_time:7000, ]
Coordinates:
* frame_time int32 ...4 [ns] (time) []
Data:
float64 [au] (time, frame_time) [] []
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
assert da.bins.size().sum().value > 0
else:
assert set(da.dims) == {"time", "frame_time"}
assert "time" in da.coords
assert "frame_time" in da.coords
> assert da.size > 0
E assert 0 > 0
E + where 0 =
.tox/nexusfiles-scipp-odin/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:43: AssertionError