From 969f08c8713eb954b15cf6dec82a4c97cda1ce72 Mon Sep 17 00:00:00 2001 From: Daniel Pressler Date: Tue, 25 Aug 2026 14:38:18 -0700 Subject: [PATCH] Bugfix: compute_suitable_rc_plane TypeError with numpy>=2.5.0 --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- sarkit_processing/sicd_area_plane.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9250af..1ced8d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- TypeError calling `sicd_area_plane.compute_suitable_rc_plane` with `numpy>=2.5.0` + ## [0.1.0] - 2026-08-03 diff --git a/pyproject.toml b/pyproject.toml index 440d64e..5b9081c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ readme = "README.md" license = "MIT" license-files = ["LICENSE"] classifiers = [ - "Development Status :: 1 - Planning", + "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering", "Programming Language :: Python", diff --git a/sarkit_processing/sicd_area_plane.py b/sarkit_processing/sicd_area_plane.py index e3a7a63..6970399 100644 --- a/sarkit_processing/sicd_area_plane.py +++ b/sarkit_processing/sicd_area_plane.py @@ -168,7 +168,7 @@ def compute_suitable_rc_plane(sicd_xmltree): ) ground_resolution_proj = mats.M_GPXY_IL * np.array([delta_xrow, delta_ycol]) - eigen_val, eigen_vec = np.linalg.eig( + eigen_val, eigen_vec = np.linalg.eigh( ground_resolution_proj @ ground_resolution_proj.T ) max_val = np.argmax(eigen_val)