CIL icon indicating copy to clipboard operation
CIL copied to clipboard

numpy 2

Open casperdcl opened this issue 3 months ago • 0 comments

  • misc numpy>=2 safety (fixes #1915)
  • test numpy 2.*
  • test astra-toolbox 2.*
  • bump ccpi-regulariser 25.0.0
  • [ ] bump tomophantom
  • [ ] bump tigre
  • [x] depends on ccpi-regulariser build with numpy>=2 https://github.com/TomographicImaging/CCPi-Regularisation-Toolkit/issues/215

unsure about

  • https://github.com/TomographicImaging/CIL/blob/4b038a7b32e43dd5078340c86bba08cdf3b72a01/Wrappers/Python/cil/optimisation/algorithms/FISTA.py#L234
  • cil.plugins.tigre.Atb
  • https://github.com/TomographicImaging/CIL/blob/4b038a7b32e43dd5078340c86bba08cdf3b72a01/Wrappers/Python/cil/optimisation/algorithms/PDHG.py#L516
  • https://github.com/TomographicImaging/CIL/blob/4b038a7b32e43dd5078340c86bba08cdf3b72a01/Wrappers/Python/cil/optimisation/algorithms/APGD.py#L285

upstream problems

  • test tomophantom with numpy>=2
  • test tigre with numpy>=2
  • test astra-toolbox=*=cuda* with numpy>=2
  • test_CIL_CVXPy -> cvxpy -> scipy:
test_cil_vs_cvxpy_totalvariation_anisotropic (test_CIL_CVXPy.Test_CIL_vs_CVXPy.test_cil_vs_cvxpy_totalvariation_anisotropic) ... 
...
$CONDA_PREFIX/lib/python3.12/site-packages/scipy/sparse/_dia.py:140: UserWarning: result dtype changed due to the removal of value-based promotion from NumPy. Changed from int64 to int32.
  nnz += min(M+k,N)
...
$CONDA_PREFIX/lib/python3.12/site-packages/cvxpy/utilities/coeff_extractor.py:296: UserWarning: result dtype changed due to the removal of value-based promotion from NumPy. Changed from int32 to int64.
  P.row += offset

casperdcl avatar Sep 30 '25 17:09 casperdcl