Skip to content

Commit

Permalink
Fix: update chunking of all dimensions to auto (except dimension) (#171)
Browse files Browse the repository at this point in the history
* update chunking of all dimensions to auto (except dimension)

* bump ver

---------

Co-authored-by: Gerald Walter Irsiegler <gerald@Irsiegler-P14s>
  • Loading branch information
GeraldIr and Gerald Walter Irsiegler authored Oct 11, 2023
1 parent 8588f3d commit c254f6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ def fit_curve(
# so we do this to generate names locally
parameters = {f"param_{i}": v for i, v in enumerate(parameters)}

chunking = {key: "auto" for key in data.dims if key != dimension}
chunking[dimension] = -1

# The dimension along which to fit the curves cannot be chunked!
rechunked_data = data.chunk({dimension: -1})
rechunked_data = data.chunk(chunking)

def wrapper(f):
def _wrap(*args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openeo-processes-dask"
version = "2023.10.1"
version = "2023.10.2"
description = "Python implementations of many OpenEO processes, dask-friendly by default."
authors = ["Lukas Weidenholzer <[email protected]>", "Sean Hoyal <[email protected]>", "Valentina Hutter <[email protected]>"]
maintainers = ["EODC Staff <[email protected]>"]
Expand Down

0 comments on commit c254f6e

Please sign in to comment.