Skip to content

Commit 6a7a11b

Browse files
authored
DOC: Correct minor grammar issues (#10915)
1 parent 9c4139e commit 6a7a11b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/contribute/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ Then you can do::
10511051
10521052
git branch -D shiny-new-feature
10531053
1054-
You need to use a upper-case ``-D`` because the branch was squashed into a
1054+
You need to use an upper-case ``-D`` because the branch was squashed into a
10551055
single commit before merging. Be careful with this because ``git`` won't warn
10561056
you if you accidentally delete an unmerged branch.
10571057

xarray/convert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _get_iris_args(attrs):
7979

8080
# TODO: Add converting bounds from xarray to Iris and back
8181
def to_iris(dataarray):
82-
"""Convert a DataArray into a Iris Cube"""
82+
"""Convert a DataArray into an Iris Cube"""
8383
# Iris not a hard dependency
8484
import iris
8585
from iris.fileformats.netcdf import parse_cell_methods
@@ -119,7 +119,7 @@ def to_iris(dataarray):
119119

120120

121121
def _iris_obj_to_attrs(obj):
122-
"""Return a dictionary of attrs when given a Iris object"""
122+
"""Return a dictionary of attrs when given an Iris object"""
123123
attrs = {"standard_name": obj.standard_name, "long_name": obj.long_name}
124124
if obj.units.calendar:
125125
attrs["calendar"] = obj.units.calendar
@@ -130,7 +130,7 @@ def _iris_obj_to_attrs(obj):
130130

131131

132132
def _iris_cell_methods_to_str(cell_methods_obj):
133-
"""Converts a Iris cell methods into a string"""
133+
"""Converts an Iris cell methods into a string"""
134134
cell_methods = []
135135
for cell_method in cell_methods_obj:
136136
names = "".join(f"{n}: " for n in cell_method.coord_names)
@@ -155,7 +155,7 @@ def _name(iris_obj, default="unknown"):
155155

156156

157157
def from_iris(cube):
158-
"""Convert a Iris cube into a DataArray"""
158+
"""Convert an Iris cube into a DataArray"""
159159
import iris.exceptions
160160

161161
name = _name(cube)

0 commit comments

Comments
 (0)