DMSC Integration Testing

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

Test: nexusfiles-scipp|freia|freia_read_detector_geometry|multiblade_detector

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


Test passed, nothing to report

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f06d4aeb4a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00021267.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f072bd191c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f0783eff170>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f0aea0a2450>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00021127.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f0b420d91c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f0b9986fa10>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f213d7bc950>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020987.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f216d1f9080>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f219d1695d0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f70120b66c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020917.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f703f4611c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f706f211c30>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f256637ea80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020897.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f25957991c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f25c5b1b5f0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f249ebd10d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020897.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f24ce9fd080>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f24fe12b5f0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7ff88870ed80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020897.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7ff8b71c87c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7ff8e6db5d70>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f10f1aced20>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020837.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f11215a0680>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f115119d1f0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f32a3297680>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020707.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f32d2dec7c0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f330277ab90>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f44224d8bc0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020567.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f44511b4680>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f4480cb6a90>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7efd3102c230>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020411.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7efd6087c680>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7efd907be590>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fb165c0a690>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020271.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fb196d93f60>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fb1c52f4050>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f44abee19d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f450a9376a0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f450abe87b0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fae5ca1f8f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7faebb5af6a0>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7faebbe5ac90>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7fcb684624b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fcb994a3f60>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7fcbc79c1910>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f4a73a47140>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f4aa356bf60>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f4ad1ae21d0>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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

View job log here


scipp._scipp.core.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
In provider ess.reduce.nexus.workflow.get_calibrated_detector(
    detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    *,
    transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
    offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
    bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/_cpp_wrapper_util.py:27: DimensionError
Full output
workflow = <sciline.pipeline.Pipeline object at 0x7f46a929daf0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f46da30bf60>

    @pytest.mark.parametrize("detector_name", ["multiblade_detector"])
    def test_freia_read_detector_geometry(
        workflow: sciline.Pipeline,
        coda_nexus_file_path: Path,
        detector_name: str,
        check_detector_positions_events: Callable,
    ) -> None:
        workflow[Filename[SampleRun]] = coda_nexus_file_path
        workflow[NeXusDetectorName] = detector_name
    
>       result = workflow.compute(EmptyDetector[SampleRun])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/pipeline.py:191: in compute
    return self.get(tp, **kwargs).compute(reporter=reporter)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/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-freia/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-freia/lib/python3.12/site-packages/dask/threaded.py:115: in get
    results = get_async(
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:547: in get_async
    raise_exception(exc, tb)
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:351: in reraise
    raise exc
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/local.py:256: in execute_task
    result = task(data)
             ^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/_task_spec.py:768: in __call__
    return self.func(*new_argspec)
           ^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/dask/utils.py:79: in apply
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/sciline/_provider.py:145: in __call__
    return self._func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/ess/reduce/nexus/workflow.py:438: in get_calibrated_detector
    da = da.fold(dim="detector_number", sizes=sizes)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-freia/lib/python3.12/site-packages/scipp/core/shape.py:302: in fold
    return _call_cpp_func(_cpp.fold, x, dim, dims, new_shape)  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func = <built-in method fold of pybind11_builtins.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 object at 0x7f47087c5f50>
args = (<scipp.DataArray>
Dimensions: Sizes[detector_number:65536, ]
Coordinates:
* detector_number             int32        ...<no unit>  (detector_number)  [1, 2, ..., 65535, 65536]

, 'detector_number', ['strip', 'blade', 'wire'], [64, 48, 32])
kwargs = {}

    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.DimensionError: Sizes (strip: 64, blade: 48, wire: 32) provided to `fold` not compatible with length '65536' of dimension 'detector_number' being folded.
E           In provider ess.reduce.nexus.workflow.get_calibrated_detector(
E               detector: ess.reduce.nexus.types.NeXusComponent[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               *,
E               transform: ess.reduce.nexus.types.NeXusTransformation[scippnexus.nxdetector.NXdetector, ess.reduce.nexus.types.SampleRun],
E               offset: ess.reduce.nexus.types.DetectorPositionOffset[ess.reduce.nexus.types.SampleRun],
E               bank_sizes: ess.reduce.nexus.types.DetectorBankSizes,,
E           ) -> ess.reduce.nexus.types.EmptyDetector[ess.reduce.nexus.types.SampleRun]

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