Eo-learn

Latest version: v1.5.4

Safety actively analyzes 638437 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.4.1

- The codebase is now fully annotated and type annotations are mandatory for all new code.
- In the future `EOPatch` objects will **require** a valid `bbox`. For now the users are warned when no such value is provided.
- `SaveTask` and `LoadTask` now automatically save/load the bounding box whenever possible, even if not specified in `features` parameter. `CopyTask` and `MergeEOPatchesTask` also always include the bounding box when possible.
- The `EOPatch` attribute `bbox` can no longer be deleted via the `del` command.
- The `EOPatch` attribute `timestamp` was renamed into `timestamps`. The old name still works, but the users are notified. Similarly for `FeatureType.TIMESTAMP` which was renamed to `FeatureType.TIMESTAMPS`.
- Feature parsers from `eolearn.core.utils.parsers` now support callables as input for `allowed_feature_types`, which are used for filtration over all feature types. Due to this improvement the class `FeatureTypeSet` was deprecated.
- Certain rarely used methods of `FeatureType` were deprecated. Method `is_raster` has been renamed to `is_array` and designates feature types that contain numpy arrays. We also added `is_image` for types that denote temporal and timeless imagery.
- Contributors are no longer listed in file headers, but are instead listed in the `CREDITS.md` file in the root of the repository.
- Updated `CONTRIBUTING.md` instructions.
- Various other minor improvements and deprecations.

1.4.0

- (**codebreaking**) Complete overhaul of `eolearn.coregistration`. See documentation for details.
- (**codebreaking**) Removed non-working HVPlot backend for `eolearn.visualization`.
- (**codebreaking**) The `SpatialResizeTask` had a bug when resizing w.r.t resolution. The issue was fixed and the signature of the task was redesigned to better avoid mistakes. See documentation for details.
- (**codebreaking**) The `EOPatch` methods `get_features` and `get_feature_list` were recombined into a new `get_features` method. The method `get_time_series` was removed. See documentation for details.
- (**codebreaking**) Removed unsound `use_int_coords` option in `eolearn.ml_tools.sampling.random_point_in_triangle`.
- Added ability to specify query in execute method of `MeteoblueTask`.
- `SentinelHubInputTask` no longer saves redundant data into meta-features.
- Module `eolearn.core.utils.types` was moved to `eolearn.core.types`. Old one will be removed in the future.
- Switched `opencv-contrib-python-headless` requirement to `opencv-python-headless`
- Added type annotations to most of the code base.
- Various improvements to tests and code.

1.3.1

- Sentinel Hub IO tasks now support a custom timestamp filtration via `timestamp_filter` parameter, contributed by ColinMoldenhauer.
- `MergeFeatureTask` now supports the `axis` parameter.
- Fix minor issues with the coregistration module.
- Prepare for future removal of `sentinelhub.os_utils`.
- Fix type annotations after `mypy` update.
- Improvements to tests and various minor changes.

1.3.0

- (**codebreaking**) Adapted Sentinel Hub tasks to `sentinelhub-py 3.8.0` which switched to Catalog 1.0.0.
- (**codebreaking**) Removed support for loading pickled objects in EOPatches (deprecated since version 1.0.0).
- (**codebreaking**) Various improvements of `FeatureIO` class. Only affects direct use of class.
- Added type annotations to majority of `eolearn.core`. The types are now exposed via `py.typed` file, which enables use of `mypy`. Added type-checking to CI for the `core` module.
- Numpy-array based features can now save and load `object` populated arrays.
- Improved documentation building, fixed links to GitHub.
- Improved test coverage.
- Added pre-commit hooks to repository for easier development.
- Various minor improvements.

1.2.1

- Corrected the default for `no_data_value` in `ImportFromTiffTask` and `ExportToTiffTask` to `None`. The previous default of `0` was a poor choice in many scenarios. The switch might alter behavior in existing code.
- Changed the way `SpatialResizeTask` accepts parameters for the final image size. Now supports resizing by using resolution.
- Added `ExplodeBandsTask` that explodes a multi-band feature into multiple features.
- Exposed resampling parameters in Sentinel Hub tasks and included a `geometry` execution parameter.
- Reworked internal classes `FeatureIO` and `_FeatureDict` to improve types and maintainability.
- Fixed y-axis orientation of `MeteoblueRasterTask`.
- `FilterTimeSeriesTask` adjusted to work with multiprocessing.
- EOPatch plotting no longer anti-aliases by default (removes issues with phantom values in mask plots)
- Improved documentation building, fixing a few broken links.

1.2.0

- 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.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.