From 866a4b3da2c34180d574a7e60073739f6900c3bf Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Sat, 29 Jun 2024 23:49:39 +0200 Subject: [PATCH] Update docstrings --- xarray/core/datatree.py | 2 ++ xarray/core/treenode.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xarray/core/datatree.py b/xarray/core/datatree.py index 1b3fd488a09..9d13e3be87f 100644 --- a/xarray/core/datatree.py +++ b/xarray/core/datatree.py @@ -1071,6 +1071,8 @@ def from_dict( To assign data to the root node of the tree use "/" as the path. name : Hashable | None, optional Name for the root node of the tree. Default is None. + copy : bool, optional + Whether to make a shallow copy of the values in the dict. Default is True. Returns ------- diff --git a/xarray/core/treenode.py b/xarray/core/treenode.py index 9b5a363f661..23d2519a84d 100644 --- a/xarray/core/treenode.py +++ b/xarray/core/treenode.py @@ -502,6 +502,8 @@ def _set_item( allow_overwrite : bool Whether or not to overwrite any existing node at the location given by path. + copy : bool, optional + Whether to make a shallow copy of the values in the node. Default is True. Raises ------