Skip to content

Commit fd41552

Browse files
authored
Merge pull request #439 from sentinel-hub/feat/v1.2.0
Changes for version 1.2.0
2 parents f69b86f + ca0661f commit fd41552

File tree

12 files changed

+38
-22
lines changed

12 files changed

+38
-22
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [Version 1.2.0] - 2022-07-27
2+
3+
- Improved handling of filesystem objects:
4+
* introduced utility functions `pickle_fs` and `unpickle_fs` into `eo-learn-core`,
5+
* updated all IO tasks to fully support `filesystem` as an `__init__` parameter,
6+
* updated `EOExecutor` to support `filesystem` propagation to worker processes.
7+
- Official support for Python `3.10`.
8+
- Moved `eolearn.coregistration.ThunderRegistrationTask` into an extension of `eo-learn-coregistration` package because it doesn't support Python `3.10`.
9+
- 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.
10+
- Larger updates of `eolearn.io.ExportToTiffTask`. It doesn't allow undefined `folder` parameter anymore, but it has better support for `filesystem` objects.
11+
- Added `eolearn.core.utils.raster.fast_nanpercentile` utility function and moved `constant_pad` function into the same module.
12+
- Suppressed a warning when saving an `EOPatch` with empty vector features.
13+
- Updated code-style checkers by including `flake8` and checks for Jupyter notebooks.
14+
- Various style improvements in example notebooks, code, and tests.
15+
16+
117
## [Version 1.1.1] - 2022-06-14
218

319
- Fixed a bug in `eolearn.io.ImportFromTiffTask` where a bounding box from the image wasn't added to the EOPatch.

core/eolearn/core/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
from .eoworkflow import EOWorkflow, WorkflowResults
2828
from .eoworkflow_tasks import OutputTask
2929
from .utils.common import deep_eq
30-
from .utils.fs import get_filesystem, load_s3_filesystem
30+
from .utils.fs import get_filesystem, load_s3_filesystem, pickle_fs, unpickle_fs
3131
from .utils.parallelize import execute_with_mp_lock, join_futures, join_futures_iter, parallelize
3232
from .utils.parsing import FeatureParser
3333

34-
__version__ = "1.1.0"
34+
__version__ = "1.2.0"

core/eolearn/tests/test_utils/test_fs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
from sentinelhub import SHConfig
2727

28-
from eolearn.core import get_filesystem, load_s3_filesystem
29-
from eolearn.core.utils.fs import get_aws_credentials, get_full_path, join_path, pickle_fs, unpickle_fs
28+
from eolearn.core import get_filesystem, load_s3_filesystem, pickle_fs, unpickle_fs
29+
from eolearn.core.utils.fs import get_aws_credentials, get_full_path, join_path
3030

3131

3232
def test_get_local_filesystem(tmp_path):

coregistration/eolearn/coregistration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
from .coregistration import ECCRegistrationTask, InterpolationType, PointBasedRegistrationTask, RegistrationTask
66

7-
__version__ = "1.1.0"
7+
__version__ = "1.2.0"

features/eolearn/features/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
AddSpatioTemporalFeaturesTask,
3939
)
4040

41-
__version__ = "1.1.1"
41+
__version__ = "1.2.0"

geometry/eolearn/geometry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
)
1212
from .transformations import RasterToVectorTask, VectorToRasterTask
1313

14-
__version__ = "1.1.0"
14+
__version__ = "1.2.0"

io/eolearn/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
get_available_timestamps,
1414
)
1515

16-
__version__ = "1.1.1"
16+
__version__ = "1.2.0"

io/eolearn/io/geometry_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
from sentinelhub import CRS, GeopediaFeatureIterator, SHConfig
2121

22-
from eolearn.core import EOPatch, EOTask, FeatureTypeSet
23-
from eolearn.core.utils.fs import get_base_filesystem_and_path, get_full_path, pickle_fs, unpickle_fs
22+
from eolearn.core import EOPatch, EOTask, FeatureTypeSet, pickle_fs, unpickle_fs
23+
from eolearn.core.utils.fs import get_base_filesystem_and_path, get_full_path
2424

2525
LOGGER = logging.getLogger(__name__)
2626

mask/eolearn/mask/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
from .snow_mask import SnowMaskTask, TheiaSnowMaskTask
99
from .utils import resize_images
1010

11-
__version__ = "1.1.0"
11+
__version__ = "1.2.0"

ml_tools/eolearn/ml_tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
from .sampling import BlockSamplingTask, FractionSamplingTask, GridSamplingTask, sample_by_values
66
from .train_test_split import TrainTestSplitTask
77

8-
__version__ = "1.1.0"
8+
__version__ = "1.2.0"

0 commit comments

Comments
 (0)