Skip to content

Fix CI test failures from jax/numpy deprecation warnings - #747

Merged
mirzaees merged 2 commits into
isce-framework:mirzaees-patch-1from
mirzaees:mirzaees-patch-1
Oct 8, 2026
Merged

mirzaees merged 2 commits into
isce-framework:mirzaees-patch-1from
mirzaees:mirzaees-patch-1

Conversation

@mirzaees

@mirzaees mirzaees commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

jax 0.9.2 added a FutureWarning when jax.scipy.linalg.solve is given an identity matrix as the RHS to compute a full inverse, since it hits an ambiguous batched-solve path internal to cho_solve. Both call sites in crlb.py were only ever using solve() this way to get a matrix inverse, so switch them to jnp.linalg.inv directly.

Also cap numpy<2.5 in the dependency specs: gdal_calc.py (used via _average_or_rename) still relies on an in-place ndarray.shape assignment that numpy 2.5 deprecated. The fix landed upstream (OSGeo/gdal#15127) but hasn't shipped in a GDAL release yet, so pin around it until it does.

Since this repo's filterwarnings = ["error"] promotes both warnings to hard failures, they were taking down ~54 tests across the CRLB and GDAL-averaging code paths.

mirzaees and others added 2 commits October 8, 2026 13:18
jax 0.9.2 added a FutureWarning when jax.scipy.linalg.solve is given
an identity matrix as the RHS to compute a full inverse, since it hits
an ambiguous batched-solve path internal to cho_solve. Both call sites
in crlb.py were only ever using solve() this way to get a matrix
inverse, so switch them to jnp.linalg.inv directly.

Also cap numpy<2.5 in the dependency specs: gdal_calc.py (used via
_average_or_rename) still relies on an in-place ndarray.shape
assignment that numpy 2.5 deprecated. The fix landed upstream
(OSGeo/gdal#15127) but hasn't shipped in a GDAL release yet, so pin
around it until it does.

Since this repo's filterwarnings = ["error"] promotes both warnings to
hard failures, they were taking down ~54 tests across the CRLB and
GDAL-averaging code paths.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mirzaees
mirzaees merged commit 114283a into isce-framework:mirzaees-patch-1 Oct 8, 2026
5 checks passed
mirzaees added a commit that referenced this pull request Oct 8, 2026
* Update opera-utils version to 0.25.9

* Fix CI test failures from jax/numpy deprecation warnings (#747)

jax 0.9.2 added a FutureWarning when jax.scipy.linalg.solve is given
an identity matrix as the RHS to compute a full inverse, since it hits
an ambiguous batched-solve path internal to cho_solve. Both call sites
in crlb.py were only ever using solve() this way to get a matrix
inverse, so switch them to jnp.linalg.inv directly.

Also cap numpy<2.5 in the dependency specs: gdal_calc.py (used via
_average_or_rename) still relies on an in-place ndarray.shape
assignment that numpy 2.5 deprecated. The fix landed upstream
(OSGeo/gdal#15127) but hasn't shipped in a GDAL release yet, so pin
around it until it does.

Since this repo's filterwarnings = ["error"] promotes both warnings to
hard failures, they were taking down ~54 tests across the CRLB and
GDAL-averaging code paths.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant