diff --git a/src/openeo_gfmap/fetching/s1.py b/src/openeo_gfmap/fetching/s1.py index 4eac573..dda8be9 100644 --- a/src/openeo_gfmap/fetching/s1.py +++ b/src/openeo_gfmap/fetching/s1.py @@ -7,7 +7,7 @@ from geojson import GeoJSON from openeo_gfmap.backend import Backend, BackendContext -from openeo_gfmap.spatial import BoundingBoxExtent, SpatialContext +from openeo_gfmap.spatial import SpatialContext from openeo_gfmap.temporal import TemporalContext from .commons import ( diff --git a/src/openeo_gfmap/preprocessing/udf_rank.py b/src/openeo_gfmap/preprocessing/udf_rank.py index fa8e679..a9011b6 100644 --- a/src/openeo_gfmap/preprocessing/udf_rank.py +++ b/src/openeo_gfmap/preprocessing/udf_rank.py @@ -1,4 +1,3 @@ -from pathlib import Path import numpy as np import xarray as xr diff --git a/src/openeo_gfmap/preprocessing/udf_score.py b/src/openeo_gfmap/preprocessing/udf_score.py index 056e2c2..c2873d2 100644 --- a/src/openeo_gfmap/preprocessing/udf_score.py +++ b/src/openeo_gfmap/preprocessing/udf_score.py @@ -1,13 +1,10 @@ -import datetime import math -import time import numpy as np import xarray as xr from openeo.udf import XarrayDataCube from scipy.ndimage import distance_transform_cdt -from skimage.morphology import binary_dilation, binary_erosion, footprints -from xarray.ufuncs import isnan as ufuncs_isnan +from skimage.morphology import binary_erosion, footprints def apply_datacube(cube: XarrayDataCube, context: dict) -> XarrayDataCube: diff --git a/src/openeo_gfmap/spatial.py b/src/openeo_gfmap/spatial.py index 454ef91..1a38c49 100644 --- a/src/openeo_gfmap/spatial.py +++ b/src/openeo_gfmap/spatial.py @@ -1,6 +1,6 @@ """ Definitions of spatial context, either point-based or spatial""" from dataclasses import dataclass -from typing import Dict, Union +from typing import Union from geojson import GeoJSON diff --git a/src/openeo_gfmap/temporal.py b/src/openeo_gfmap/temporal.py index c75b7a0..7fdb2c3 100644 --- a/src/openeo_gfmap/temporal.py +++ b/src/openeo_gfmap/temporal.py @@ -1,7 +1,6 @@ """ Definitions of temporal context""" from dataclasses import dataclass from datetime import datetime -from typing import Tuple @dataclass diff --git a/src/openeo_gfmap/utils/build_df.py b/src/openeo_gfmap/utils/build_df.py index aeb0d35..7627189 100644 --- a/src/openeo_gfmap/utils/build_df.py +++ b/src/openeo_gfmap/utils/build_df.py @@ -2,7 +2,6 @@ based job. Usefull to collect the output of point based extraction. """ -from datetime import datetime from pathlib import Path import pandas as pd diff --git a/src/openeo_gfmap/utils/intervals.py b/src/openeo_gfmap/utils/intervals.py index f53bc38..022ca64 100644 --- a/src/openeo_gfmap/utils/intervals.py +++ b/src/openeo_gfmap/utils/intervals.py @@ -2,7 +2,7 @@ methods. """ -from datetime import datetime, timedelta +from datetime import timedelta from openeo_gfmap import TemporalContext diff --git a/tests/test_openeo_gfmap/test_cloud_masking.py b/tests/test_openeo_gfmap/test_cloud_masking.py index 6963319..e0ba500 100644 --- a/tests/test_openeo_gfmap/test_cloud_masking.py +++ b/tests/test_openeo_gfmap/test_cloud_masking.py @@ -1,5 +1,4 @@ from pathlib import Path -from typing import Union import pytest diff --git a/tests/test_openeo_gfmap/test_s2_fetchers.py b/tests/test_openeo_gfmap/test_s2_fetchers.py index 722c05b..fed1bc3 100644 --- a/tests/test_openeo_gfmap/test_s2_fetchers.py +++ b/tests/test_openeo_gfmap/test_s2_fetchers.py @@ -1,10 +1,8 @@ """ Tests for data extractors for Sentinel2 data. """ from pathlib import Path -from typing import Union import geojson import geopandas as gpd -import numpy as np import openeo import pytest import rioxarray