Skip to content

Commit c254f6e

Browse files
GeraldIrGerald Walter Irsiegler
and
Gerald Walter Irsiegler
authored
Fix: update chunking of all dimensions to auto (except dimension) (#171)
* update chunking of all dimensions to auto (except dimension) * bump ver --------- Co-authored-by: Gerald Walter Irsiegler <gerald@Irsiegler-P14s>
1 parent 8588f3d commit c254f6e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openeo_processes_dask/process_implementations/ml/curve_fitting.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ def fit_curve(
4949
# so we do this to generate names locally
5050
parameters = {f"param_{i}": v for i, v in enumerate(parameters)}
5151

52+
chunking = {key: "auto" for key in data.dims if key != dimension}
53+
chunking[dimension] = -1
54+
5255
# The dimension along which to fit the curves cannot be chunked!
53-
rechunked_data = data.chunk({dimension: -1})
56+
rechunked_data = data.chunk(chunking)
5457

5558
def wrapper(f):
5659
def _wrap(*args, **kwargs):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openeo-processes-dask"
3-
version = "2023.10.1"
3+
version = "2023.10.2"
44
description = "Python implementations of many OpenEO processes, dask-friendly by default."
55
authors = ["Lukas Weidenholzer <lukas.weidenholzer@eodc.eu>", "Sean Hoyal <sean.hoyal@eodc.eu>", "Valentina Hutter <valentina.hutter@eodc.eu>"]
66
maintainers = ["EODC Staff <support@eodc.eu>"]

0 commit comments

Comments
 (0)