Skip to content

Commit

Permalink
Apply tools and fix all code quality issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorlazarski committed Jun 11, 2024
1 parent a556e5c commit 6b35c7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/iris/nodes/normalization/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Tuple, Union
from typing import Tuple, Union

import numpy as np
from pydantic import NonNegativeInt
Expand Down Expand Up @@ -67,7 +67,9 @@ def getgrids(res_in_r: NonNegativeInt, p2i_ratio: NonNegativeInt) -> np.ndarray:
return grids[0:-1] + np.diff(grids) / 2


def get_pixel_or_default(image: np.ndarray, pixel_x: float, pixel_y: float, default: Union[bool, int]) -> Union[bool, int]:
def get_pixel_or_default(
image: np.ndarray, pixel_x: float, pixel_y: float, default: Union[bool, int]
) -> Union[bool, int]:
"""Get the value of a pixel in the image 2D array.
Args:
Expand Down

0 comments on commit 6b35c7b

Please sign in to comment.