DMSC Integration Testing

Last updated: September 25, 2026 08:02:48

Test: nexusfiles-scipp|beer|beer_read_monitor_data|beam_monitor_m3

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f85c9444080>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00022387.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f85cbf31620>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f85c9492570>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fa1fae20260>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00022247.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fa1fb475620>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7fa1fae23ec0>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7ff1eb4da150>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00022117.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7ff1ec3496c0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7ff1eb656870>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f52616efb30>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021977.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f5261f0d120>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f5261703440>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f729cd66000>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021833.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f729e151260>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f729d923260>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fee009ece90>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021703.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fee01491260>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7fee00c2d400>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f24529ed3d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021563.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f245393d120>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f24530fbd10>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fa5976843e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021413.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fa598481120>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7fa5976840e0>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd195d8fe60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021273.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fd196725260>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7fd195dc2d50>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f83a4d20d70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00021123.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f83a5b91120>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f83a51365a0>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f9f5235b6b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020983.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f9f52c11260>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f9f5254ae70>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6037cf1610>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020703.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f60389674c0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f6037ec7fb0>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f65a9778950>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020563.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f65aa4574c0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f65a989b230>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f144d841f70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020417.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f144e687380>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f144dd90560>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f7a2dfa23c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020267.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f7a2e8253a0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f7a2de9bf80>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f89e055be60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020205.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f89e1375300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f89ddd32510>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f5b3e4eddc0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020205.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f5b3f979300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f5b3c3c1c10>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_component(
    location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
    nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4f553af470>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00020117.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f4f5897d300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:242: in load_nexus_component
    nexus.load_component(location, nx_class=nx_class, definitions=definitions)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:99: in load_component
    with open_component_group(
/opt/miniforge/lib/python3.12/contextlib.py:137: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:325: in open_component_group
    yield _unique_child_group(parent, nx_class, group_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:370: in _unique_child_group
    child = group[name]
            ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f4f55291cd0>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_component(
E               location: ess.reduce.nexus.types.NeXusComponentLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E               nx_class: ess.reduce.nexus.types.NeXusClass[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor],
E           ) -> ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


KeyError: 'beam_monitor_m3'
In provider ess.reduce.nexus.workflow.load_nexus_data(
    location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f01dbeac5c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019974.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f01de62d300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/task_graph.py:122: in compute
    return self._scheduler.get(self._graph, [targets], reporter=reporter)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/scheduler.py:140: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:279: in load_nexus_data
    nexus.load_data(
.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/ess/reduce/nexus/_nexus_loader.py:560: in load_data
    component = instrument[component_name]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scippnexus.base.Group object at 0x7f01dbeb7050>, sel = 'beam_monitor_m3'

    def __getitem__(self, sel):
        """
        Get a child group or child dataset, a selection of child groups, or load and
        return the current group.
    
        Three cases are supported:
    
        - String name: The child group or child dataset of that name is returned.
        - Class such as ``NXdata`` or ``NXlog``: A dict containing all direct children
          with a matching ``NX_class`` attribute are returned. Also accepts a tuple of
          classes. ``Field`` selects all child fields, i.e., all datasets but not
          groups.
        - Scipp-style index: Load the specified slice of the current group, returning
          a :class:`scipp.DataArray` or :class:`scipp.DataGroup`.
    
        Parameters
        ----------
        sel:
            Child name, class, or index.
    
        Returns
        -------
        :
            Field, group, dict of fields, or loaded data.
        """
        if isinstance(sel, str):
            # We cannot get the child directly from the HDF5 group, since we need to
            # create the parent group, to ensure that fields get the correct properties
            # such as sizes and dtype.
            if '/' in sel:
                sel_path = PurePosixPath(sel)
                if sel_path.is_absolute():
                    return self.file[sel_path.relative_to('/').as_posix()]
                # If the path is a single name, we can directly access the child
                elif len(sel_path.parts) == 1:
                    return self[sel_path.as_posix()]
                else:
                    grp = sel_path.parts[0]
                    return self[grp][sel_path.relative_to(grp).as_posix()]
            elif sel == '..':
                return self.parent
>           child = self._children[sel]
                    ^^^^^^^^^^^^^^^^^^^
E           KeyError: 'beam_monitor_m3'
E           In provider ess.reduce.nexus.workflow.load_nexus_data(
E               location: ess.reduce.nexus.types.NeXusDataLocationSpec[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun],
E           ) -> ess.reduce.nexus.types.NeXusData[tests.nexusfiles-scipp.beer.beer_load_nexus_test.BeerMonitor, ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-beer/lib/python3.12/site-packages/scippnexus/base.py:370: KeyError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f9a59fb33b0>.size
 +            where <scipp.core.bins.Bins object at 0x7f9a59fb33b0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f9a59fa8320>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019807.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f9a5d0c5300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f9a59fb33b0>.size
E            +            where <scipp.core.bins.Bins object at 0x7f9a59fb33b0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f83f52ab080>.size
 +            where <scipp.core.bins.Bins object at 0x7f83f52ab080> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f83f4f63440>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019445.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f83f7f85300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f83f52ab080>.size
E            +            where <scipp.core.bins.Bins object at 0x7f83f52ab080> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fd6354f3320>.size
 +            where <scipp.core.bins.Bins object at 0x7fd6354f3320> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd6354c38f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019445.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fd6384f5300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fd6354f3320>.size
E            +            where <scipp.core.bins.Bins object at 0x7fd6354f3320> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fd592ae1e50>.size
 +            where <scipp.core.bins.Bins object at 0x7fd592ae1e50> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd59299acf0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019375.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fd595a35300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fd592ae1e50>.size
E            +            where <scipp.core.bins.Bins object at 0x7fd592ae1e50> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f7fe2497f80>.size
 +            where <scipp.core.bins.Bins object at 0x7f7fe2497f80> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f7fe2379cd0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019229.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f7fe54f5300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f7fe2497f80>.size
E            +            where <scipp.core.bins.Bins object at 0x7f7fe2497f80> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f4aa51110a0>.size
 +            where <scipp.core.bins.Bins object at 0x7f4aa51110a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4aa4c7a4e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00019098.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f4aa7ef5300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f4aa51110a0>.size
E            +            where <scipp.core.bins.Bins object at 0x7f4aa51110a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f75fa2e25a0>.size
 +            where <scipp.core.bins.Bins object at 0x7f75fa2e25a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f75fa120050>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018958.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f75fd129300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f75fa2e25a0>.size
E            +            where <scipp.core.bins.Bins object at 0x7f75fa2e25a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f013e0fc290>.size
 +            where <scipp.core.bins.Bins object at 0x7f013e0fc290> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f013df85220>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018818.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f0141075300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f013e0fc290>.size
E            +            where <scipp.core.bins.Bins object at 0x7f013e0fc290> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f846e0a3680>.size
 +            where <scipp.core.bins.Bins object at 0x7f846e0a3680> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f846e399a60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018678.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f84714f5300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f846e0a3680>.size
E            +            where <scipp.core.bins.Bins object at 0x7f846e0a3680> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f1604874680>.size
 +            where <scipp.core.bins.Bins object at 0x7f1604874680> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f1603dc1310>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018334.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f1606f85300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f1604874680>.size
E            +            where <scipp.core.bins.Bins object at 0x7f1604874680> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f691a03e420>.size
 +            where <scipp.core.bins.Bins object at 0x7f691a03e420> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f691a2d3590>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018334.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f691d235300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f691a03e420>.size
E            +            where <scipp.core.bins.Bins object at 0x7f691a03e420> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f4b95506510>.size
 +            where <scipp.core.bins.Bins object at 0x7f4b95506510> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4b954752e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018334.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f4b98639300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f4b95506510>.size
E            +            where <scipp.core.bins.Bins object at 0x7f4b95506510> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f4717404140>.size
 +            where <scipp.core.bins.Bins object at 0x7f4717404140> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f47176ac740>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018254.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f471a635300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f4717404140>.size
E            +            where <scipp.core.bins.Bins object at 0x7f4717404140> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f2b86b57110>.size
 +            where <scipp.core.bins.Bins object at 0x7f2b86b57110> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f2b866942f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00018124.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f2b89779300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f2b86b57110>.size
E            +            where <scipp.core.bins.Bins object at 0x7f2b86b57110> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fde4fa35b50>.size
 +            where <scipp.core.bins.Bins object at 0x7fde4fa35b50> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fde4fba6c60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017984.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fde52c39300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fde4fa35b50>.size
E            +            where <scipp.core.bins.Bins object at 0x7fde4fa35b50> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fc8cddb2960>.size
 +            where <scipp.core.bins.Bins object at 0x7fc8cddb2960> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fc8cdca46b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017747.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fc8d0e09300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fc8cddb2960>.size
E            +            where <scipp.core.bins.Bins object at 0x7fc8cddb2960> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f53dd2a5e20>.size
 +            where <scipp.core.bins.Bins object at 0x7f53dd2a5e20> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f53db43a2a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017659.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f53e0379300>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f53dd2a5e20>.size
E            +            where <scipp.core.bins.Bins object at 0x7f53dd2a5e20> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f77ca684440>.size
 +            where <scipp.core.bins.Bins object at 0x7f77ca684440> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f77ca4c5bb0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017549.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f77cd4efec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f77ca684440>.size
E            +            where <scipp.core.bins.Bins object at 0x7f77ca684440> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f45e29fcec0>.size
 +            where <scipp.core.bins.Bins object at 0x7f45e29fcec0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f45e2229be0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017399.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f45e50ebec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f45e29fcec0>.size
E            +            where <scipp.core.bins.Bins object at 0x7f45e29fcec0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f29c4f00950>.size
 +            where <scipp.core.bins.Bins object at 0x7f29c4f00950> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f29c4f07bf0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017259.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f29c7757ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f29c4f00950>.size
E            +            where <scipp.core.bins.Bins object at 0x7f29c4f00950> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7ff7f36ea840>.size
 +            where <scipp.core.bins.Bins object at 0x7ff7f36ea840> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7ff7f3aa7bc0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00017119.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7ff7f68dbec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7ff7f36ea840>.size
E            +            where <scipp.core.bins.Bins object at 0x7ff7f36ea840> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f2c0223f620>.size
 +            where <scipp.core.bins.Bins object at 0x7f2c0223f620> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f2c024c7500>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016979.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f2c05437ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f2c0223f620>.size
E            +            where <scipp.core.bins.Bins object at 0x7f2c0223f620> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f4a53978950>.size
 +            where <scipp.core.bins.Bins object at 0x7f4a53978950> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4a5378aed0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016849.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f4a56813ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f4a53978950>.size
E            +            where <scipp.core.bins.Bins object at 0x7f4a53978950> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f81c4727740>.size
 +            where <scipp.core.bins.Bins object at 0x7f81c4727740> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f81c471b3b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016709.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f81c76ebec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f81c4727740>.size
E            +            where <scipp.core.bins.Bins object at 0x7f81c4727740> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f095936b320>.size
 +            where <scipp.core.bins.Bins object at 0x7f095936b320> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f0958f4b020>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016559.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f095be37ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f095936b320>.size
E            +            where <scipp.core.bins.Bins object at 0x7f095936b320> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fd4b9272ab0>.size
 +            where <scipp.core.bins.Bins object at 0x7fd4b9272ab0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd4b9142e10>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016429.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fd4bc0ebec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fd4b9272ab0>.size
E            +            where <scipp.core.bins.Bins object at 0x7fd4b9272ab0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fe9a36faea0>.size
 +            where <scipp.core.bins.Bins object at 0x7fe9a36faea0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fe9a38a4830>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016279.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fe9a6233ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fe9a36faea0>.size
E            +            where <scipp.core.bins.Bins object at 0x7fe9a36faea0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7fe33c234ad0>.size
 +            where <scipp.core.bins.Bins object at 0x7fe33c234ad0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fe33c6fc590>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00016139.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7fe33f3efec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7fe33c234ad0>.size
E            +            where <scipp.core.bins.Bins object at 0x7fe33c234ad0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError

View job log here


AssertionError: assert np.int64(0) > 0
 +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
 +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
 +          where size = <scipp.core.bins.Bins object at 0x7f63ed6c56a0>.size
 +            where <scipp.core.bins.Bins object at 0x7f63ed6c56a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f63ee0b0620>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_beer_999999_00015999.hdf')
monitor_name = 'beam_monitor_m3'
check_monitor_data = <function _check_monitor_data at 0x7f63f08f3ec0>

    @pytest.mark.parametrize(
        "monitor_name", ["beam_monitor_m1", "beam_monitor_m2", "beam_monitor_m3"]
    )
    def test_beer_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[BeerMonitor]] = monitor_name
    
        monitor = workflow.compute(RawMonitor[SampleRun, BeerMonitor])
    
>       check_monitor_data(monitor)

tests/nexusfiles-scipp/beer/beer_load_nexus_test.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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_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
E           AssertionError: assert np.int64(0) > 0
E            +  where np.int64(0) = <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  ()  0\n\n.value
E            +    where <scipp.DataArray>\nDimensions: Sizes[]\nCoordinates:\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\nData:\n                              int64        <no unit>  (event_time_zero)  []\n\n = size()
E            +          where size = <scipp.core.bins.Bins object at 0x7f63ed6c56a0>.size
E            +            where <scipp.core.bins.Bins object at 0x7f63ed6c56a0> = <scipp.DataArray>\nDimensions: Sizes[event_time_zero:0, ]\nCoordinates:\n* event_time_zero         datetime64             [ns]  (event_time_zero)  []\n* position                  vector3              [m]  ()  (0, 0, -157)\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-beer/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:38: AssertionError