diff --git a/lib/ncdata/_core.py b/lib/ncdata/_core.py index b0d7cb4..71bc06d 100644 --- a/lib/ncdata/_core.py +++ b/lib/ncdata/_core.py @@ -330,8 +330,8 @@ def copy(self): """ Copy self. - This duplicates structure with new ncdata core objects, but does not duplicate - data arrays. See :func:`ncdata.utils.ncdata_copy`. + This duplicates structure with all-new ncdata core objects, but does not + duplicate variable data arrays. See :func:`ncdata.utils.ncdata_copy`. """ from ncdata.utils import ncdata_copy @@ -479,7 +479,7 @@ def copy(self): """ Copy self. - Does not duplicate arrays oin data or attribute content. + Does not duplicate arrays in data content. See :func:`ncdata.utils.ncdata_copy`. """ from ncdata.utils._copy import _attributes_copy @@ -583,12 +583,7 @@ def __str__(self): # noqa: D105 return repr(self) def copy(self): - """ - Copy self. - - Does not duplicate array content. - See :func:`ncdata.utils.ncdata_copy`. - """ + """Copy self, including any array value content.""" return NcAttribute(self.name, self.value.copy()) def __eq__(self, other): diff --git a/lib/ncdata/utils/_copy.py b/lib/ncdata/utils/_copy.py index 30e876b..f631df4 100644 --- a/lib/ncdata/utils/_copy.py +++ b/lib/ncdata/utils/_copy.py @@ -14,8 +14,8 @@ def ncdata_copy(ncdata: NcData) -> NcData: """ Return a copy of the data. - The operation makes fresh copies of all ncdata objects, but does not copy arrays in - variable data. + The operation makes fresh copies of all ncdata objects, but does not copy variable + data arrays. Parameters ----------