DMSC Integration Testing

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

Test: nexusfiles-scipp|magic|magic_read_monitor_data|beam_monitor_1

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6a111cb3e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022383.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f6a142656c0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:106: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:494: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f6a6bd6f1b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fb2c60be960>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022253.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fb2c8c716c0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:106: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:494: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fb320b0c9b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7ff89cb9b4a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022113.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7ff89c235760>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:494: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7ff8f3eaa470>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f9762cc2d80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021973.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f9762ded440>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f97baee1fb0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f5faf5c5ac0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021839.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f5faff21300>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f6007dab090>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f3c93617a10>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021699.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f3c937d1440>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f3ceb74fd30>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fee0aacd130>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021559.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fee0b059300>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fee62c6d8b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f8e56003470>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021419.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f8e56029300>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f8eadfef2d0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f2dcd8773b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021269.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f2dce069440>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f2e2605fdf0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd5e63cede0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021129.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fd5e6d3d300>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fd63ec9b570>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f32a7d22d80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020989.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f32a7ed9300>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f32d8343bd0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f91a64af950>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020699.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f91a6e976a0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f91d6e21d50>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fee8afc4d70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020569.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fee8ba236a0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7feebb9968b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f7c7e5d37d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020413.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f7c7ea9b560>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f7caecc8b90>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fa13023cd10>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020273.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fa1307f5580>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fa161e24630>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7feeea113fe0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020200.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7feeed3854e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fef181542f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f95b27079b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020200.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f95b59814e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f95e06f42f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f8f70874a10>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020112.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f8f739214e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f8fa1620310>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f9af91d5b80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019969.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f9afb8714e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f9b296402f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f02b82343e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019803.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f02bb3214e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f02e90402f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f87660dee70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019451.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f87692394e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f876bcc02f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f8b75dae750>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019451.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f8b78ef54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f8b7b96c2f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6e614abd70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019371.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f6e646f54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f6e670d02f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f665a927d70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019225.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f665d9294e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f668b61c2f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f5efb3c1df0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00019094.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f5f07b294e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f5f0a96c2f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f756d80a2a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018954.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f757091d4e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f759e6202f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7ff0fe4840b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018814.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7ff1015214e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7ff12f2402f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f9156091fd0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018674.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f915911d4e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f9186e402f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fd0b26a6780>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018330.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fd0b57254e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fd0e341c2f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4c430958e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018330.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f4c460c54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f4c73c402f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f5fc8a2fcb0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018330.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f5fcbb254e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f5ff98202f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fbaa74deff0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018250.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fbaaa6094e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fbaad0802f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6e0839ca40>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00018120.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f6e0b4f54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f6e0ded4310>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
    monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f3295ec3ad0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017980.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f3298ef54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/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-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f329b8d42f0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.
E           In provider ess.reduce.nexus.workflow.get_calibrated_monitor(
E               monitor: ess.reduce.nexus.types.NeXusComponent[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               transform: ess.reduce.nexus.types.NeXusTransformation[tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.MonitorPositionOffset[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor],
E           ) -> ess.reduce.nexus.types.EmptyMonitor[ess.reduce.nexus.types.SampleRun, tests.nexusfiles-scipp.magic.magic_load_nexus_test.MagicMonitor]

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f551ceb5670>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017743.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f55200f54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f5522b002b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fa4719c25d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017655.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fa474af54e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fa4a24402b0>
args = ()
kwargs = {'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0), 'unit': Unit(1), 'copy': True}

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f1ab851caa0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017545.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f1abb6100e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f1abe3a8750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f84e99ecb90>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017395.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f84eca5c0e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f84ef7a4750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f343072d250>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017265.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f34334580e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f343615c750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f988471ba70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00017125.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f98874540e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f988a174770>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f2c9de05a00>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016985.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f2ca0c5c0e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f2ca39a8750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6fffd75ee0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016845.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f7002d100e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f7005b6c750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f5a2ea3bd40>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016705.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f5a31a540e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f5a34778750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4e4680a870>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016555.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f4e498580e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f4e4c570750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fad7f277d70>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016425.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fad8210c0e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fad84eac750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fb70fbf48c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016285.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fb712c580e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fb715928750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f6e5d34f2f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016145.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f6e604d00e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f6e62f28750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError

View job log here


scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7efc18349bb0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00016005.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7efc1b30c0e0>

    @pytest.mark.parametrize("monitor_name", ["beam_monitor_1"])
    def test_magic_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[MagicMonitor]] = monitor_name
    
>       monitor = workflow.compute(RawMonitor[SampleRun, MagicMonitor])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/magic/magic_load_nexus_test.py:114: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/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-magic/lib/python3.12/site-packages/sciline/scheduler.py:119: in get
    return self._dask_get(dsk, list(map(_to_dask_key, keys)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/dask/utils.py:81: in apply
    return func(*args)
           ^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:518: in get_calibrated_monitor
    + offset.to(unit=transform_unit),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/operations.py:484: in to
    return to_unit(var, unit, copy=copy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/unary.py:176: in to_unit
    return _call_cpp_func(_cpp.to_unit, x=x, unit=unit, copy=copy)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method to_unit of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7efc1e030750>
args = ()
kwargs = {'copy': True, 'unit': Unit(1), 'x': <scipp.Variable> ()    vector3              [m]  (0, 0, 0)}
out = None

    def call_func(
        func: Callable[_P, _R],
        *args: _P.args,
        **kwargs: _P.kwargs,
    ) -> _R | DataGroup[Any]:
        out = kwargs.pop('out', None)
        if any(isinstance(x, DataGroup) for x in itertools.chain(args, kwargs.values())):
            if out is not None:
                raise ValueError(
                    "`out` argument is not supported for DataGroup operations."
                )
            return data_group_nary(func, *args, **kwargs)
        if out is None:
>           return func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
E           scipp._scipp.core.UnitError: Conversion from `m` to `dimensionless` is not valid.

.tox/nexusfiles-scipp-magic/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: UnitError