Skip to content

Commit 94b8da4

Browse files
Improve doc strings
Co-authored-by: Sadie L. Bartholomew <[email protected]>
1 parent 9c9f1b0 commit 94b8da4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cf/data/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7384,7 +7384,7 @@ def to_memory(self):
73847384
def to_units(self, units, inplace=False):
73857385
"""Change the data array units.
73867386
7387-
Changing the units will causes the data values to be changed
7387+
Changing the units causes the data values to be changed
73887388
to match the new units, therefore the new units must be
73897389
equivalent to the existing ones.
73907390

cf/mixin/propertiesdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4435,7 +4435,7 @@ def to_dask_array(self):
44354435
def to_units(self, units, inplace=False):
44364436
"""Change the data array units.
44374437
4438-
Changing the units will causes the data values to be changed
4438+
Changing the units causes the data values to be changed
44394439
to match the new units, therefore the new units must be
44404440
equivalent to the existing ones.
44414441

cf/mixin/propertiesdatabounds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,8 +2246,8 @@ def override_units(self, units, inplace=False, i=False):
22462246
22472247
Not to be confused with changing to equivalent units with the
22482248
`to_units` method or the `Units`, `units`, or `calendar`
2249-
attributes. These approaches also convert the data to have the
2250-
new units.
2249+
attributes. These approaches also convert the data values to conform
2250+
with the new units.
22512251
22522252
.. seealso:: `override_calendar`, `to_units`, `Units`,
22532253
`units`, `calendar`
@@ -3324,7 +3324,7 @@ def log(self, base=None, bounds=True, inplace=False, i=False):
33243324
def to_units(self, units, inplace=False):
33253325
"""Change the data array units.
33263326
3327-
Changing the units will causes the data values to be changed
3327+
Changing the units causes the data values to be changed
33283328
to match the new units, therefore the new units must be
33293329
equivalent to the existing ones.
33303330

0 commit comments

Comments
 (0)