Skip to content

Commit b7b0169

Browse files
authored
Merge pull request #48 from CMCC-Foundation/resample-hotfix
hotfix for resample memory leaks
2 parents e490785 + eb09210 commit b7b0169

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

datastore/datastore/datastore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import intake
99
from dask.delayed import Delayed
10+
from geokube import GeogCS
1011

1112
from geoquery.geoquery import GeoQuery
1213

@@ -462,7 +463,7 @@ def _process_query(kube, query: GeoQuery, compute: None | bool = False):
462463
Datastore._LOG.debug("Applying resample...")
463464
kube = kube.resample(**query.resample)
464465
if query.regrid:
465-
if query.regrid == 'regular':
466+
if query.regrid == 'regular' and not isinstance(kube.domain.crs, GeogCS):
466467
kube = kube.to_regular()
467468
return kube.compute() if compute else kube
468469

drivers/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
ARG REGISTRY=rg.fr-par.scw.cloud/geokube
2-
#ARG TAG=v0.2.6b2
3-
#ARG TAG=2024.05.03.10.36
4-
ARG TAG=v0.2.7.9
2+
#ARG TAG=2025.03.25.10.56
3+
ARG TAG=v0.2.7.10
54
FROM $REGISTRY/geokube:$TAG
65

76
ADD . /opt/intake_geokube

0 commit comments

Comments
 (0)