Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release #771

Merged
merged 4 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ repos:
- id: debug-statements

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black
language_version: python3

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.292"
rev: "v0.1.4"
hooks:
- id: ruff

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [Version 1.5.2] - 2023-11-07

- `RayExecutor` can now forward remote kwargs to ray jobs.
- `ImportTiffTask` no longer uses the `use_vsi` parameter. The IO part was fully off-loaded to `rasterio`.
- `ImportTiffTask` and `ExportTiffTask` parameter `folder` was renamed to `path`. The renaming is backwards compatible for now.


## [Version 1.5.1] - 2023-10-17

- `MorphologicalFilterTask` adapted to work on boolean values.
Expand Down
3 changes: 2 additions & 1 deletion eolearn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Main module of the `eolearn` package."""
__version__ = "1.5.1"

__version__ = "1.5.2"

import importlib.util
import warnings
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The following objects and functions are the core of eo-learn package
"""

from .constants import FeatureType, OverwritePermission
from .core_tasks import (
AddFeatureTask,
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 warnings
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/core_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 copy
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 concurrent.futures
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eodata_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 concurrent.futures
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eodata_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eoexecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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 concurrent.futures
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eonode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eotask.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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 inspect
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eoworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/eoworkflow_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 .eodata import EOPatch
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 warnings
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/extra/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 logging import FileHandler, Filter
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 collections
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 sys
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 uuid
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 copy
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/parallelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 concurrent.futures
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 contextlib
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 Literal
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/core/utils/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Deprecated module for types, moved to `eolearn.core.types`."""

from __future__ import annotations

from warnings import warn
Expand Down
1 change: 1 addition & 0 deletions eolearn/coregistration/coregistration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/features/extra/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 Callable, Literal
Expand Down
1 change: 1 addition & 0 deletions eolearn/features/extra/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/features/feature_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 datetime as dt
Expand Down
1 change: 1 addition & 0 deletions eolearn/features/ndi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/features/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 warnings
Expand Down
1 change: 1 addition & 0 deletions eolearn/geometry/morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/geometry/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/io/raster_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/io/sentinelhub_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/mask/extra/cloud_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/mask/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 Callable, Iterable, Literal
Expand Down
1 change: 1 addition & 0 deletions eolearn/mask/snow_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/ml_tools/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/visualization/eoexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 base64
Expand Down
1 change: 1 addition & 0 deletions eolearn/visualization/eopatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions eolearn/visualization/eoworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 Sequence
Expand Down
1 change: 1 addition & 0 deletions install_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 subprocess
Expand Down
1 change: 1 addition & 0 deletions tests/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For the full list of contributors, see the CREDITS file in the root directory of this source tree.
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
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 warnings
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_eodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 datetime as dt
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_eodata_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 datetime
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_eodata_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 datetime as dt
Expand Down
Loading