Test passed, nothing to report
Test: nexusfiles-scipp|freia|freia_read_detector_everything|multiblade_detector
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 0x7f06d45ae6f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00021267.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f072bd296c0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f0aea461940>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00021127.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f0b414b16c0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f213dd61be0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020987.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f216d1b1580>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f10f1cab0e0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020837.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f11215c8b80>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f32a2d06570>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020707.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f32d2de0cc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f4421012210>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020567.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f44511ccb80>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7efd3132cf20>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020411.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7efd609a0b80>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fb165f08980>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020271.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fb193f7ad40>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fae5cd0bb00>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fae8d949c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f4f0595a990>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020198.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f4f36405c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f6dc5b37500>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00020110.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f6df6605c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fb7d6c34fb0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019978.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fb8078c9c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fbbd32d0b00>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019801.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fbc03d01c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fca67bdbfe0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019449.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fca98605c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f8e103a1040>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019449.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f8e40e05c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f021252fef0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019379.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f0243801c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7ffab48e84a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019223.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7ffae5c09c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fa6714828a0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00019102.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fa6a1b01c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fedb0e4b5c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018952.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fede19f1c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fe8af952630>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018812.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fe8e0df5c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f2b0f88ec00>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018672.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f2b42d01c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fa7f3bb78f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fa825209c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f78f1ca1ac0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f7923201c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f1cec931ac0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018328.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f1d1d001c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f53cdf43ef0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018248.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f53ff6a5c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fcae74c7980>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00018118.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fcb18905c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fdc66012de0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017978.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fdc97601c60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f865fe781d0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017741.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f869124dc60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7ff3c4bd2210>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017653.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7ff3f5d4dc60>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f55635075c0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017543.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f5594fd5bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fba02f23b30>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017403.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fba3e001bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f9cab5f7440>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017263.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f9cdce05bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f9589a5b9b0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00017123.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f95bac4dbc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fcd5718f050>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016983.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fcd88a01bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f206c3e3f50>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016843.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f20a1c49bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7fd1ed1f7740>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016703.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7fd21ebf5bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f75112ffdd0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016563.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f75422adbc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f8110382270>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016423.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f8141301bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f6dd51a7980>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016283.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f6e06101bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f5920ac3dd0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016143.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f595bb01bc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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
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 0x7f416b9cc8f0>
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_freia_999999_00016003.hdf')
detector_name = 'multiblade_detector'
check_everything_events = <function _check_everything_events at 0x7f419c8ddbc0>
@pytest.mark.parametrize("detector_name", ["multiblade_detector"])
def test_freia_read_detector_everything(
workflow: sciline.Pipeline,
coda_nexus_file_path: Path,
detector_name: str,
check_everything_events: Callable,
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
workflow[NeXusDetectorName] = detector_name
> result = workflow.compute(RawDetector[SampleRun])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/nexusfiles-scipp/freia/freia_load_nexus_test.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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