DMSC Integration Testing

Last updated: September 25, 2026 08:04:50

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 0x7f8f393ba6f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022303.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f8f3bf1d6c0>

    @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 0x7f8f93e809f0>
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 0x7f492d4447d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022203.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f492de7be20>

    @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 0x7f4985b2e1d0>
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 0x7f04a520b680>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022193.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f04a84116c0>

    @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 0x7f04ffc2b4d0>
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 0x7f18d9662d80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022073.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f18d9ffd800>

    @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 0x7f1931c1e0b0>
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 0x7f75a24d0e30>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022063.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f75a312d800>

    @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 0x7f75faa07130>
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 0x7f018bbe8260>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022063.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f018c5b5940>

    @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 0x7f01e41dd650>
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 0x7f7cbafb4b60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022043.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f7cbba55760>

    @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 0x7f7d136dcb90>
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 0x7f9a979def30>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022043.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f9a9812d4e0>

    @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 0x7f9af031bcf0>
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 0x7fe856217d40>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022043.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fe8565793a0>

    @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 0x7fe8ae6c7010>
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 0x7fbdfc988da0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022033.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fbdfd4c54e0>

    @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 0x7fbe55915570>
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 0x7f789f8d6bd0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022023.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f78a00b14e0>

    @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 0x7f78f81e5bd0>
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 0x7ff7d27e8560>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00022023.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7ff7d30cd3a0>

    @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 0x7ff82b4ad010>
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 0x7f374020cc80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021909.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f374083d440>

    @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: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 0x7f3798aade50>
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 0x7fa04461f710>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021909.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7fa044f89440>

    @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 0x7fa09ce43030>
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 0x7ff3971bdd30>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021899.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7ff396ae5440>

    @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 0x7ff3eee37770>
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 0x7f0a121b24e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00021519.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f0a12a9d440>

    @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 0x7f0a6ab10f70>
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 0x7f0c3fa7fe60>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020909.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f0c40169440>

    @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 0x7f0c704e0f30>
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 0x7f81ed2531d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020899.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f81edd79440>

    @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 0x7f821df39310>
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 0x7f73b9ae95b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020899.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f73bad5d300>

    @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 0x7f73ea7fb070>
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 0x7f8e634933e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_magic_999999_00020889.hdf')
monitor_name = 'beam_monitor_1'
check_monitor_data = <function _check_monitor_data at 0x7f8e6383b6a0>

    @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 0x7f8e93cc5170>
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 0x7f2ee567af00>
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 0x7f2ee87214e0>

    @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 0x7f2f164202f0>
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 0x7fe58f8b00b0>
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 0x7fe58fc29580>

    @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 0x7fe5c12457b0>
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 0x7f54ec3bc170>
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 0x7f54ec7f1580>

    @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 0x7f551ddff430>
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 0x7f1e6ba93c50>
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 0x7f1e6be29580>

    @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 0x7f1e9d4ea790>
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