From 556e68934e36f68362e81ef8610e488039b42a2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:47:46 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...25.12.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06172fb0..70d04909 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-case-conflict - id: check-docstring-first @@ -17,8 +17,8 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: "25.1.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "25.12.0" hooks: - id: black args: [--preview, --enable-unstable-feature, string_processing] From fd5978db8de5bcdca77dde627fac4fcac578cfd3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:48:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/s1reader/s1_annotation.py | 4 ++-- src/s1reader/s1_reader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/s1reader/s1_annotation.py b/src/s1reader/s1_annotation.py index 7cdcb11a..75cf901c 100644 --- a/src/s1reader/s1_annotation.py +++ b/src/s1reader/s1_annotation.py @@ -1226,13 +1226,13 @@ def from_polynomial_lists( """ # Extract polynomial info for azimuth FM rate - (fm_rate_aztime_burst_vec, fm_rate_coeff_burst_arr, fm_rate_tau0_burst_vec) = ( + fm_rate_aztime_burst_vec, fm_rate_coeff_burst_arr, fm_rate_tau0_burst_vec = ( cls.extract_polynomial_sequence( az_fm_rate_list, sensing_start, sensing_end, handle_out_of_range=True ) ) - (dc_aztime_burst_vec, dc_coeff_burst_arr, dc_tau0_burst_vec) = ( + dc_aztime_burst_vec, dc_coeff_burst_arr, dc_tau0_burst_vec = ( cls.extract_polynomial_sequence( doppler_centroid_list, sensing_start, diff --git a/src/s1reader/s1_reader.py b/src/s1reader/s1_reader.py index 501e4b96..d8d4327a 100644 --- a/src/s1reader/s1_reader.py +++ b/src/s1reader/s1_reader.py @@ -151,7 +151,7 @@ def doppler_poly1d_to_lut2d( _ : LUT2d LUT2d calculated from poly1d. """ - (n_lines, n_samples) = shape + n_lines, n_samples = shape # calculate all slant ranges in grid slant_ranges = starting_slant_range + np.arange(n_samples) * slant_range_res