diff --git a/AgriDataValue/data_search.ipynb b/AgriDataValue/data_search.ipynb index 0418d18..5bf1977 100644 --- a/AgriDataValue/data_search.ipynb +++ b/AgriDataValue/data_search.ipynb @@ -494,7 +494,7 @@ "source": [ "collections = catalog.get_collections()\n", "\n", - "collections = [collection for collection in collections if collection[\"title\"].startswith((\"ADV - indicators\"))]\n", + "collections = [collection for collection in collections if collection[\"title\"].startswith(\"ADV - indicators\")]\n", "collections" ] }, @@ -701,7 +701,7 @@ } ], "source": [ - "from sentinelhub import MimeType, SentinelHubDownloadClient, SentinelHubRequest, bbox_to_dimensions, filter_times\n", + "from sentinelhub import MimeType, SentinelHubDownloadClient, SentinelHubRequest, filter_times\n", "\n", "time_difference = dt.timedelta(hours=1)\n", "\n", @@ -757,7 +757,7 @@ " ],\n", " responses=[SentinelHubRequest.output_response(\"default\", MimeType.TIFF)],\n", " bbox=bbox,\n", - " resolution=(10000, 10000), \n", + " resolution=(10000, 10000),\n", " config=config,\n", " )\n", " process_requests.append(request)" @@ -842,7 +842,7 @@ } ], "source": [ - "fig, ax = plt.subplots(figsize=(10 ,10))\n", + "fig, ax = plt.subplots(figsize=(10, 10))\n", "plt.imshow(indicator, vmin=0, vmax=20, cmap=\"RdYlBu_r\")\n", "ax.set_title(\"Average Temperature (Historical 1995-2015)\")" ] diff --git a/GEM-data/meteoblue.py b/GEM-data/meteoblue.py index e8feb7b..7c7f513 100644 --- a/GEM-data/meteoblue.py +++ b/GEM-data/meteoblue.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/extra-tasks/blob/blob.py b/extra-tasks/blob/blob.py index 9b4348f..03cc627 100644 --- a/extra-tasks/blob/blob.py +++ b/extra-tasks/blob/blob.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/extra-tasks/blob/test_blob.py b/extra-tasks/blob/test_blob.py index de0d3f6..2122d6e 100644 --- a/extra-tasks/blob/test_blob.py +++ b/extra-tasks/blob/test_blob.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/extra-tasks/class_frequency/class_frequency.py b/extra-tasks/class_frequency/class_frequency.py index f52310c..8e5d231 100644 --- a/extra-tasks/class_frequency/class_frequency.py +++ b/extra-tasks/class_frequency/class_frequency.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Iterator diff --git a/extra-tasks/class_frequency/test_class_frequency.py b/extra-tasks/class_frequency/test_class_frequency.py index 3907752..1ac1064 100644 --- a/extra-tasks/class_frequency/test_class_frequency.py +++ b/extra-tasks/class_frequency/test_class_frequency.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/extra-tasks/cloud_mask/cloud_mask.py b/extra-tasks/cloud_mask/cloud_mask.py index 52db51f..547500f 100644 --- a/extra-tasks/cloud_mask/cloud_mask.py +++ b/extra-tasks/cloud_mask/cloud_mask.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/extra-tasks/cloud_mask/test_cloud_mask.py b/extra-tasks/cloud_mask/test_cloud_mask.py index d6bbabf..529be85 100644 --- a/extra-tasks/cloud_mask/test_cloud_mask.py +++ b/extra-tasks/cloud_mask/test_cloud_mask.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/extra-tasks/doubly_logistic_approximation/doubly_logistic_approximation.py b/extra-tasks/doubly_logistic_approximation/doubly_logistic_approximation.py index 4289dc6..d5082c4 100644 --- a/extra-tasks/doubly_logistic_approximation/doubly_logistic_approximation.py +++ b/extra-tasks/doubly_logistic_approximation/doubly_logistic_approximation.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/extra-tasks/doubly_logistic_approximation/test_doubly_logistic_approximation.py b/extra-tasks/doubly_logistic_approximation/test_doubly_logistic_approximation.py index 6b12c78..a8dd81b 100644 --- a/extra-tasks/doubly_logistic_approximation/test_doubly_logistic_approximation.py +++ b/extra-tasks/doubly_logistic_approximation/test_doubly_logistic_approximation.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/extra-tasks/euclidean_norm/euclidean_norm.py b/extra-tasks/euclidean_norm/euclidean_norm.py index e3a51f4..2ad60bd 100644 --- a/extra-tasks/euclidean_norm/euclidean_norm.py +++ b/extra-tasks/euclidean_norm/euclidean_norm.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/extra-tasks/euclidean_norm/test_bands_extraction.py b/extra-tasks/euclidean_norm/test_bands_extraction.py index f7d5921..ddb5f17 100644 --- a/extra-tasks/euclidean_norm/test_bands_extraction.py +++ b/extra-tasks/euclidean_norm/test_bands_extraction.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/extra-tasks/geodb/geodb.py b/extra-tasks/geodb/geodb.py index dea6df3..14ceb79 100644 --- a/extra-tasks/geodb/geodb.py +++ b/extra-tasks/geodb/geodb.py @@ -8,6 +8,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Any diff --git a/extra-tasks/geopedia/test_geopedia.py b/extra-tasks/geopedia/test_geopedia.py index aab0881..77d0b16 100644 --- a/extra-tasks/geopedia/test_geopedia.py +++ b/extra-tasks/geopedia/test_geopedia.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import pytest diff --git a/extra-tasks/haralick/haralick.py b/extra-tasks/haralick/haralick.py index 7ab5998..0efc443 100644 --- a/extra-tasks/haralick/haralick.py +++ b/extra-tasks/haralick/haralick.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/extra-tasks/haralick/test_haralick.py b/extra-tasks/haralick/test_haralick.py index 94366ab..e96188d 100644 --- a/extra-tasks/haralick/test_haralick.py +++ b/extra-tasks/haralick/test_haralick.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/extra-tasks/hog/hog.py b/extra-tasks/hog/hog.py index 95fcde0..fbf138d 100644 --- a/extra-tasks/hog/hog.py +++ b/extra-tasks/hog/hog.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/extra-tasks/hog/test_hog.py b/extra-tasks/hog/test_hog.py index 0b99b23..b40d2f4 100644 --- a/extra-tasks/hog/test_hog.py +++ b/extra-tasks/hog/test_hog.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/extra-tasks/linear_function/linear_function.py b/extra-tasks/linear_function/linear_function.py index ce74e27..ee379c2 100644 --- a/extra-tasks/linear_function/linear_function.py +++ b/extra-tasks/linear_function/linear_function.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/extra-tasks/local_binary_pattern/local_binary_pattern.py b/extra-tasks/local_binary_pattern/local_binary_pattern.py index 7c141b4..81162c1 100644 --- a/extra-tasks/local_binary_pattern/local_binary_pattern.py +++ b/extra-tasks/local_binary_pattern/local_binary_pattern.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/extra-tasks/local_binary_pattern/test_local_binary_pattern.py b/extra-tasks/local_binary_pattern/test_local_binary_pattern.py index 3022cc2..10be28c 100644 --- a/extra-tasks/local_binary_pattern/test_local_binary_pattern.py +++ b/extra-tasks/local_binary_pattern/test_local_binary_pattern.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/extra-tasks/meteoblue/meteoblue.py b/extra-tasks/meteoblue/meteoblue.py index e8feb7b..7c7f513 100644 --- a/extra-tasks/meteoblue/meteoblue.py +++ b/extra-tasks/meteoblue/meteoblue.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/extra-tasks/meteoblue/test_meteoblue.py b/extra-tasks/meteoblue/test_meteoblue.py index 52bc26d..4362f8d 100644 --- a/extra-tasks/meteoblue/test_meteoblue.py +++ b/extra-tasks/meteoblue/test_meteoblue.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/extra-tasks/radiometric_normalization/radiometric_normalization.py b/extra-tasks/radiometric_normalization/radiometric_normalization.py index 51358f4..c2d55ee 100644 --- a/extra-tasks/radiometric_normalization/radiometric_normalization.py +++ b/extra-tasks/radiometric_normalization/radiometric_normalization.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from abc import ABCMeta, abstractmethod diff --git a/extra-tasks/radiometric_normalization/test_radiometric_normalization.py b/extra-tasks/radiometric_normalization/test_radiometric_normalization.py index f6a5bc9..9c05bd4 100644 --- a/extra-tasks/radiometric_normalization/test_radiometric_normalization.py +++ b/extra-tasks/radiometric_normalization/test_radiometric_normalization.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/extra-tasks/superpixel/superpixel.py b/extra-tasks/superpixel/superpixel.py index 1bcd494..1060196 100644 --- a/extra-tasks/superpixel/superpixel.py +++ b/extra-tasks/superpixel/superpixel.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/extra-tasks/superpixel/test_superpixel.py b/extra-tasks/superpixel/test_superpixel.py index e02ab46..984d08a 100644 --- a/extra-tasks/superpixel/test_superpixel.py +++ b/extra-tasks/superpixel/test_superpixel.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/extra-tasks/tdigest/tdigest.py b/extra-tasks/tdigest/tdigest.py index f4f625a..9e3a4b8 100644 --- a/extra-tasks/tdigest/tdigest.py +++ b/extra-tasks/tdigest/tdigest.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from functools import partial diff --git a/extra-tasks/temporal_features/temporal_features.py b/extra-tasks/temporal_features/temporal_features.py index be95f52..5bd2a8f 100644 --- a/extra-tasks/temporal_features/temporal_features.py +++ b/extra-tasks/temporal_features/temporal_features.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/extra-tasks/temporal_features/test_temporal_features.py b/extra-tasks/temporal_features/test_temporal_features.py index 2f3f2f4..9c29087 100644 --- a/extra-tasks/temporal_features/test_temporal_features.py +++ b/extra-tasks/temporal_features/test_temporal_features.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from datetime import date, timedelta diff --git a/extra-tasks/theia_snow_mask/test_theia_snow_mask.py b/extra-tasks/theia_snow_mask/test_theia_snow_mask.py index f8031e8..1527c6f 100644 --- a/extra-tasks/theia_snow_mask/test_theia_snow_mask.py +++ b/extra-tasks/theia_snow_mask/test_theia_snow_mask.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/extra-tasks/theia_snow_mask/theia_snow_mask.py b/extra-tasks/theia_snow_mask/theia_snow_mask.py index c408e40..4131ca3 100644 --- a/extra-tasks/theia_snow_mask/theia_snow_mask.py +++ b/extra-tasks/theia_snow_mask/theia_snow_mask.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools diff --git a/extra-tasks/train_test_split/test_train_test_split.py b/extra-tasks/train_test_split/test_train_test_split.py index 1605332..8b480b3 100644 --- a/extra-tasks/train_test_split/test_train_test_split.py +++ b/extra-tasks/train_test_split/test_train_test_split.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Any diff --git a/extra-tasks/train_test_split/train_test_split.py b/extra-tasks/train_test_split/train_test_split.py index 4e47bde..25e15a4 100644 --- a/extra-tasks/train_test_split/train_test_split.py +++ b/extra-tasks/train_test_split/train_test_split.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from enum import Enum diff --git a/extra-tasks/value_fillout/value_fillout.py b/extra-tasks/value_fillout/value_fillout.py index 740ac23..b4455bc 100644 --- a/extra-tasks/value_fillout/value_fillout.py +++ b/extra-tasks/value_fillout/value_fillout.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Literal, cast diff --git a/poverty-detection-keras/pred_cong_pd.py b/poverty-detection-keras/pred_cong_pd.py index ff91dea..2f4cc5c 100644 --- a/poverty-detection-keras/pred_cong_pd.py +++ b/poverty-detection-keras/pred_cong_pd.py @@ -4,6 +4,7 @@ List some configuration parameters for prediction """ + import os from os import path as op diff --git a/poverty-detection-keras/utils.py b/poverty-detection-keras/utils.py index e2ea8b5..159b92d 100644 --- a/poverty-detection-keras/utils.py +++ b/poverty-detection-keras/utils.py @@ -5,6 +5,7 @@ Utility functions for printing training details """ + import pprint import train_config_pd as tcf