Skip to content

Commit ce01f42

Browse files
authored
Fix invalid suggestion in error (#5443)
1 parent e96f860 commit ce01f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/computation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def apply_variable_ufunc(
678678
"apply_ufunc with dask='parallelized' consists of "
679679
"multiple chunks, but is also a core dimension. To "
680680
"fix, either rechunk into a single dask array chunk along "
681-
f"this dimension, i.e., ``.chunk({dim}: -1)``, or "
681+
f"this dimension, i.e., ``.chunk(dict({dim}=-1))``, or "
682682
"pass ``allow_rechunk=True`` in ``dask_gufunc_kwargs`` "
683683
"but beware that this may significantly increase memory usage."
684684
)

0 commit comments

Comments
 (0)