Skip to content

numexpr regression #2860

@kif

Description

@kif
======================================================================
ERROR: test_integrate1d (pyFAI.test.test_multi_geometry.TestMultiGeometry.test_integrate1d)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3/dist-packages/pyFAI/test/test_multi_geometry.py", line 94, in test_integrate1d
    obt = self.mg.integrate1d(self.lst_data, self.N, lst_variance=lst_var,
                              method=self.method)
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3/dist-packages/pyFAI/multi_geometry.py", line 207, in integrate1d
    result = result.union(res)
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3/dist-packages/pyFAI/containers.py", line 397, in union
    return res.__recalculate_means__()
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/users/kieffer/workspace-400/pyFAI/build/lib/python3/dist-packages/pyFAI/containers.py", line 339, in __recalculate_means__
    numexpr.evaluate(formula_int,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                    local_dict=matching,
                    ^^^^^^^^^^^^^^^^^^^^
                    out=self.intensity)
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numexpr/necompiler.py", line 973, in evaluate
    return re_evaluate(local_dict=local_dict, global_dict=global_dict, _frame_depth=_frame_depth)
  File "/usr/lib/python3/dist-packages/numexpr/necompiler.py", line 1005, in re_evaluate
    return compiled_ex(*args, **kwargs)
TypeError: Iterator requested dtype could not be cast from dtype('float64') to dtype('float32'), the operand 0 dtype, according to the rule 'safe'

Observed debian13, py3.13.5, numpy2.2.24, numexpr 2.10.2

Metadata

Metadata

Assignees

Labels

bugSerious issue, to be addressed in priority !

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions