Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
siiptuo committed Feb 7, 2024
1 parent a3ad15e commit 3c6b0e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rpgpy/header.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""Module for reading RPG 94 GHz radar header."""
from __future__ import annotations

from typing import TYPE_CHECKING, BinaryIO, Iterator
from typing import TYPE_CHECKING, BinaryIO

import numpy as np

from rpgpy import utils

if TYPE_CHECKING:
from collections.abc import Iterator
from pathlib import Path


Expand Down
2 changes: 1 addition & 1 deletion rpgpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_velocity_vectors(header: dict) -> np.ndarray:
# zeros will be automatically masked in the netCDF file:
velocity_vectors = np.zeros((n_chirps, n_bins_max))
for ind, (n_bins, chirp_max_vel) in enumerate(
zip(header["SpecN"], header["MaxVel"]),
zip(header["SpecN"], header["MaxVel"], strict=True),
):
bins_to_shift = (n_bins_max - n_bins) // 2
dopp_res = chirp_max_vel / n_bins
Expand Down

0 comments on commit 3c6b0e7

Please sign in to comment.