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