Commit 3a4c9d41 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Removed explicit typing to avoid circular dependency.

parent cc8dbfbf
Pipeline #1173 failed with stages
in 4 minutes and 31 seconds
......@@ -2,7 +2,6 @@
import warnings
import numpy as np
from typing import Union, TypeVar
from shapely.geometry import box, Polygon
from py_tools_ds.geo.coord_calc import get_corner_coordinates, calc_FullDataset_corner_positions
from py_tools_ds.geo.coord_grid import snap_bounds_to_pixGrid
......@@ -11,14 +10,12 @@ from py_tools_ds.geo.projection import prj_equal
from py_tools_ds.geo.vector.topology import get_overlap_polygon
from py_tools_ds.numeric.array import get_outFillZeroSaturated
from .baseclasses import GeoArray
__author__ = 'Daniel Scheffler'
T_ndA_gA = TypeVar(Union[np.ndarray, GeoArray])
def _clip_array_at_mapPos(arr, mapBounds, arr_gt, band2clip=None, fillVal=0):
# type: (T_ndA_gA, tuple, tuple, int, int) -> (np.ndarray, tuple)
# type: (any, tuple, tuple, int, int) -> (np.ndarray, tuple)
"""
NOTE: asserts that mapBounds have the same projection like the coordinates in arr_gt
......@@ -176,7 +173,7 @@ def get_array_at_mapPosOLD(arr, arr_gt, arr_prj, mapBounds, mapBounds_prj, band2
def get_array_at_mapPos(arr, arr_gt, arr_prj, out_prj, mapBounds, mapBounds_prj=None, out_gsd=None, band2get=None,
fillVal=0, rspAlg='near', progress=True):
# type: (T_ndA_gA, tuple, str, str, tuple, str, tuple, int, int, str, bool) -> (np.ndarray, tuple, str)
# type: (any, tuple, str, str, tuple, str, tuple, int, int, str, bool) -> (np.ndarray, tuple, str)
"""
:param arr:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment