diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06172fb..70d0490 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] diff --git a/src/s1reader/s1_annotation.py b/src/s1reader/s1_annotation.py index 7cdcb11..75cf901 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 501e4b9..d8d4327 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