Skip to content
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
2 changes: 1 addition & 1 deletion Tools/deafrica_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__locales__ = __path__[0] + "/locales"

__version__ = "2.5.13"
__version__ = "2.5.14"


def set_lang(lang=None):
Expand Down
6 changes: 3 additions & 3 deletions Tools/deafrica_tools/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import pandas as pd
import xarray as xr
from dask_ml.wrappers import ParallelPostFit
from datacube.utils import geometry
from datacube.utils.geometry import assign_crs
from odc.geo.geom import Geometry
from odc.geo.xr import assign_crs
from sklearn.base import ClusterMixin
from sklearn.cluster import AgglomerativeClustering, KMeans
from sklearn.mixture import GaussianMixture
Expand Down Expand Up @@ -416,7 +416,7 @@ def _get_training_data_for_shp(
dc_query.pop("dask_chunks", None)

# set up query based on polygon
geom = geometry.Geometry(geom=gdf.iloc[index].geometry, crs=gdf.crs)
geom = Geometry(geom=gdf.iloc[index].geometry, crs=gdf.crs)
q = {"geopolygon": geom}

# merge polygon query with user supplied query params
Expand Down
2 changes: 1 addition & 1 deletion Tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "deafrica-tools"
# reflect version changes in deafrica_tools/__init__.py
version = "2.5.13"
version = "2.5.14"
description = "Functions and algorithms for analysing Digital Earth Africa data."
authors = [{name = "Digital Earth Africa", email = "systems@digitalearthafrica.org"}]
maintainers = [{name = "Digital Earth Africa", email = "systems@digitalearthafrica.org"}]
Expand Down