DMSC Integration Testing

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

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


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 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 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 0x7f4f05671100>
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 0x7f4f63fbf6a0>

    @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 0x7f4f648bbf50>
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 0x7f6dc5b61070>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020110.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f6e241bf6a0>

    @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 0x7f6e24aea6b0>
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 0x7fb7d6935700>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019978.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fb8353276a0>

    @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 0x7fb8355ebb70>
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 0x7fbbd380bf20>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019801.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fbc319b76a0>

    @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 0x7fbc3227f770>
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 0x7fca67a08d40>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019449.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fcac61bb6a0>

    @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 0x7fcac6b27b90>
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 0x7f8e101a91f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019449.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f8e6e9c36a0>

    @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 0x7f8e6f2dac50>
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 0x7f0212ac58b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019379.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f02713c36a0>

    @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 0x7f0271cf7e90>
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 0x7ffab4e69c40>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019223.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7ffb137bf6a0>

    @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 0x7ffb140daaf0>
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 0x7fa670d2a600>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019102.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fa6cf6b36a0>

    @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 0x7fa6cf9efa50>
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 0x7fedb0aaaa20>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018952.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fee0f5336a0>

    @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 0x7fee0f7e9e90>
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 0x7fe8afed2390>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018812.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fe90e94b6a0>

    @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 0x7fe90ebdecb0>
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 0x7f2b1274cda0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018672.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f2b709576a0>

    @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 0x7f2b70be5d30>
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 0x7fa7f44603e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fa852dbb6a0>

    @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 0x7fa8536c6010>
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 0x7f78f24c88c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f7950dbf6a0>

    @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 0x7f7951739910>
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 0x7f1cec958170>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f1d4abbf6a0>

    @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 0x7f1d4b4754d0>
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 0x7f53ceb490a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018248.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f542d13b6a0>

    @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 0x7f542d3eb870>
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 0x7fcae7b20170>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018118.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fcb4654b6a0>

    @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 0x7fcb467e4a50>
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 0x7fdc668c81d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017978.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fdcc52bf6a0>

    @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 0x7fdcc55f9ef0>
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.

.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 0x7f86604cb9b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017741.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f86bef436a0>

    @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:119: 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/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 0x7f86bf1e9f10>
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.

.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.

.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 0x7ff3c5323230>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017653.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7ff4239c36a0>

    @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:119: 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/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 0x7ff424242cb0>
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.

.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.

.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 0x7f556445adb0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017543.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f55c2a3b600>

    @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:119: 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/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 0x7f55c2bedc50>
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.

.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.

.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 0x7fba0e03efc0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017403.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fba6bbbf600>

    @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:119: 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/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 0x7fba6c4bcdd0>
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.

.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.

.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 0x7f9cac0a6ea0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017263.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f9d0a9bf600>

    @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:119: 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/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 0x7f9d0b32b650>
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.

.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.

.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 0x7f9589b462a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017123.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f95e88bb600>

    @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:119: 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/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 0x7f95e8bf3790>
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.

.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.

.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 0x7fcd57c5bbf0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016983.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fcdb65c7600>

    @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:119: 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/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 0x7fcdb6ec5bd0>
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.

.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.

.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 0x7f2070cec2c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016843.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f20cf7af600>

    @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:119: 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/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 0x7f20d0105750>
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.

.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.

.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 0x7fd1edff2600>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016703.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7fd24c72f600>

    @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:119: 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/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 0x7fd24c8eb3d0>
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.

.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.

.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 0x7f7511394470>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016563.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f756fe3b600>

    @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:119: 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/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 0x7f756fff31f0>
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.

.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.

.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 0x7f811054a690>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016423.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f816ef5b600>

    @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:119: 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/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 0x7f816f1e6050>
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.

.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.

.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 0x7f6dd53b0380>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016283.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f6e33daf600>

    @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:119: 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/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 0x7f6e3465ca90>
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.

.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.

.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 0x7f592a9bfc80>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016143.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f598974f600>

    @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:119: 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/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 0x7f59899e6650>
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.

.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.

.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 0x7f416b9bc1a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016003.hdf')
detector_name = 'multiblade_detector'
check_detector_positions_events = <function _check_detector_positions_events at 0x7f41ca433600>

    @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:119: 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/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 0x7f41ca5e5d50>
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.

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