@@ -9901,7 +9901,19 @@ def to_dask_array(self, apply_mask_hardness=False, _asanyarray=True):
9901
9901
If True then force the mask hardness of the returned
9902
9902
array to be that given by the `hardmask` attribute.
9903
9903
9904
- {{_asanyarray: `bool`, optional}}
9904
+ _asanyarray: `bool`, optional
9905
+ If True (the default) and the `__asanyarray__`
9906
+ attribute is also `True`, then a `cf_asanyarray`
9907
+ operation is added to the graph of the returned Dask
9908
+ array. If False then this operation is not added.
9909
+
9910
+ In general, setting *_asanyarray* to False should only
9911
+ be done if it is known that a) the returned Dask array
9912
+ is never going to be computed; or b) it is not
9913
+ necessary to add a `cf_asanyarray` operation in lieu of
9914
+ its functionality being implemented by a new Dask graph
9915
+ layer that is going to be created at a later stage. See
9916
+ `cf.data.dask_utils.cf_asanyarray` for further details.
9905
9917
9906
9918
.. versionadded:: NEXTVERSION
9907
9919
@@ -11968,11 +11980,11 @@ def todict(
11968
11980
11969
11981
.. versionadded:: 3.15.0
11970
11982
11971
- .. seealso:: `to_dask_array`, `tolist`
11983
+ .. seealso:: `to_dask_array`
11972
11984
11973
11985
:Parameters:
11974
11986
11975
- ` optimize_graph` : `bool`
11987
+ optimize_graph: `bool`
11976
11988
If True, the default, then prior to being converted to
11977
11989
a dictionary, the graph is optimised to remove unused
11978
11990
chunks. Note that optimising the graph can add a
@@ -11984,7 +11996,12 @@ def todict(
11984
11996
11985
11997
.. versionadded:: NEXTVERSION
11986
11998
11987
- {{_asanyarray: `bool`, optional}}
11999
+ _asanyarray: `bool`, optional
12000
+ If True (the default) and the `__asanyarray__`
12001
+ attribute is also `True`, then a `cf_asanyarray`
12002
+ operation is added to the dictionary representation of
12003
+ the Dask graph. If False then this operation is not
12004
+ added. See `to_dask_array` for details.
11988
12005
11989
12006
.. versionadded:: NEXTVERSION
11990
12007
0 commit comments