Skip to content

Version 1.4.1

Compare
Choose a tag to compare
@zigaLuksic zigaLuksic released this 14 Mar 10:44
· 150 commits to master since this release
c796a8e

The future direction of eo-learn will start prioritizing reliability and safety of code. After a lot of debate we decided that EOPatches must be well defined in the sense of geo-spatial information (bounding box) and, when using temporal features, temporal information (timestamps). In this light we decided to slowly adjust the code so that ill-formed EOPatches would occur less often. The end goal is to separate these patch-defining meta-information from other EOPatch features.

In this minor release we added a fair amount of deprecation warnings, that should help users to adapt their code ahead of any big codebreaking changes.

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