Skip to content

Commit

Permalink
Merge pull request #439 from sentinel-hub/feat/v1.2.0
Browse files Browse the repository at this point in the history
Changes for version 1.2.0
  • Loading branch information
zigaLuksic authored Jul 27, 2022
2 parents f69b86f + ca0661f commit fd41552
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 22 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## [Version 1.2.0] - 2022-07-27

- Improved handling of filesystem objects:
* introduced utility functions `pickle_fs` and `unpickle_fs` into `eo-learn-core`,
* updated all IO tasks to fully support `filesystem` as an `__init__` parameter,
* updated `EOExecutor` to support `filesystem` propagation to worker processes.
- Official support for Python `3.10`.
- Moved `eolearn.coregistration.ThunderRegistrationTask` into an extension of `eo-learn-coregistration` package because it doesn't support Python `3.10`.
- Updated functionality of `eolearn.features.SimpleFilterTask`. It now returns a new `EOPatch` and doesn't raise an error if all time slices would be filtered out.
- Larger updates of `eolearn.io.ExportToTiffTask`. It doesn't allow undefined `folder` parameter anymore, but it has better support for `filesystem` objects.
- Added `eolearn.core.utils.raster.fast_nanpercentile` utility function and moved `constant_pad` function into the same module.
- Suppressed a warning when saving an `EOPatch` with empty vector features.
- Updated code-style checkers by including `flake8` and checks for Jupyter notebooks.
- Various style improvements in example notebooks, code, and tests.


## [Version 1.1.1] - 2022-06-14

- Fixed a bug in `eolearn.io.ImportFromTiffTask` where a bounding box from the image wasn't added to the EOPatch.
Expand Down
4 changes: 2 additions & 2 deletions core/eolearn/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from .eoworkflow import EOWorkflow, WorkflowResults
from .eoworkflow_tasks import OutputTask
from .utils.common import deep_eq
from .utils.fs import get_filesystem, load_s3_filesystem
from .utils.fs import get_filesystem, load_s3_filesystem, pickle_fs, unpickle_fs
from .utils.parallelize import execute_with_mp_lock, join_futures, join_futures_iter, parallelize
from .utils.parsing import FeatureParser

__version__ = "1.1.0"
__version__ = "1.2.0"
4 changes: 2 additions & 2 deletions core/eolearn/tests/test_utils/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

from sentinelhub import SHConfig

from eolearn.core import get_filesystem, load_s3_filesystem
from eolearn.core.utils.fs import get_aws_credentials, get_full_path, join_path, pickle_fs, unpickle_fs
from eolearn.core import get_filesystem, load_s3_filesystem, pickle_fs, unpickle_fs
from eolearn.core.utils.fs import get_aws_credentials, get_full_path, join_path


def test_get_local_filesystem(tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion coregistration/eolearn/coregistration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .coregistration import ECCRegistrationTask, InterpolationType, PointBasedRegistrationTask, RegistrationTask

__version__ = "1.1.0"
__version__ = "1.2.0"
2 changes: 1 addition & 1 deletion features/eolearn/features/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
AddSpatioTemporalFeaturesTask,
)

__version__ = "1.1.1"
__version__ = "1.2.0"
2 changes: 1 addition & 1 deletion geometry/eolearn/geometry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
)
from .transformations import RasterToVectorTask, VectorToRasterTask

__version__ = "1.1.0"
__version__ = "1.2.0"
2 changes: 1 addition & 1 deletion io/eolearn/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
get_available_timestamps,
)

__version__ = "1.1.1"
__version__ = "1.2.0"
4 changes: 2 additions & 2 deletions io/eolearn/io/geometry_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

from sentinelhub import CRS, GeopediaFeatureIterator, SHConfig

from eolearn.core import EOPatch, EOTask, FeatureTypeSet
from eolearn.core.utils.fs import get_base_filesystem_and_path, get_full_path, pickle_fs, unpickle_fs
from eolearn.core import EOPatch, EOTask, FeatureTypeSet, pickle_fs, unpickle_fs
from eolearn.core.utils.fs import get_base_filesystem_and_path, get_full_path

LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion mask/eolearn/mask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from .snow_mask import SnowMaskTask, TheiaSnowMaskTask
from .utils import resize_images

__version__ = "1.1.0"
__version__ = "1.2.0"
2 changes: 1 addition & 1 deletion ml_tools/eolearn/ml_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .sampling import BlockSamplingTask, FractionSamplingTask, GridSamplingTask, sample_by_values
from .train_test_split import TrainTestSplitTask

__version__ = "1.1.0"
__version__ = "1.2.0"
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def parse_requirements(file):
setup(
name="eo-learn",
python_requires=">=3.7",
version="1.1.1",
version="1.2.0",
description="Earth observation processing framework for machine learning in Python",
long_description=get_long_description(),
long_description_content_type="text/markdown",
Expand All @@ -33,14 +33,14 @@ def parse_requirements(file):
packages=[],
include_package_data=True,
install_requires=[
"eo-learn-core==1.1.0",
"eo-learn-coregistration==1.1.0",
"eo-learn-features==1.1.1",
"eo-learn-geometry==1.1.0",
"eo-learn-io==1.1.1",
"eo-learn-mask==1.1.0",
"eo-learn-ml-tools==1.1.0",
"eo-learn-visualization==1.1.0",
"eo-learn-core==1.2.0",
"eo-learn-coregistration==1.2.0",
"eo-learn-features==1.2.0",
"eo-learn-geometry==1.2.0",
"eo-learn-io==1.2.0",
"eo-learn-mask==1.2.0",
"eo-learn-ml-tools==1.2.0",
"eo-learn-visualization==1.2.0",
],
extras_require={"DEV": parse_requirements("requirements-dev.txt")},
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion visualization/eolearn/visualization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .eopatch import PlotBackend, PlotConfig

__version__ = "1.1.0"
__version__ = "1.2.0"

0 comments on commit fd41552

Please sign in to comment.