From 025acf9cba4339be1f3a33714ac5012e420ab205 Mon Sep 17 00:00:00 2001 From: star1327p Date: Wed, 12 Nov 2025 18:48:53 -0800 Subject: [PATCH] DOC: Correct minor grammar issues --- doc/contribute/contributing.rst | 2 +- xarray/convert.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/contribute/contributing.rst b/doc/contribute/contributing.rst index 7733e73a120..4e06c08aab7 100644 --- a/doc/contribute/contributing.rst +++ b/doc/contribute/contributing.rst @@ -1051,7 +1051,7 @@ Then you can do:: git branch -D shiny-new-feature -You need to use a upper-case ``-D`` because the branch was squashed into a +You need to use an upper-case ``-D`` because the branch was squashed into a single commit before merging. Be careful with this because ``git`` won't warn you if you accidentally delete an unmerged branch. diff --git a/xarray/convert.py b/xarray/convert.py index 97ad8f4d122..6310b3a58b6 100644 --- a/xarray/convert.py +++ b/xarray/convert.py @@ -79,7 +79,7 @@ def _get_iris_args(attrs): # TODO: Add converting bounds from xarray to Iris and back def to_iris(dataarray): - """Convert a DataArray into a Iris Cube""" + """Convert a DataArray into an Iris Cube""" # Iris not a hard dependency import iris from iris.fileformats.netcdf import parse_cell_methods @@ -119,7 +119,7 @@ def to_iris(dataarray): def _iris_obj_to_attrs(obj): - """Return a dictionary of attrs when given a Iris object""" + """Return a dictionary of attrs when given an Iris object""" attrs = {"standard_name": obj.standard_name, "long_name": obj.long_name} if obj.units.calendar: attrs["calendar"] = obj.units.calendar @@ -130,7 +130,7 @@ def _iris_obj_to_attrs(obj): def _iris_cell_methods_to_str(cell_methods_obj): - """Converts a Iris cell methods into a string""" + """Converts an Iris cell methods into a string""" cell_methods = [] for cell_method in cell_methods_obj: names = "".join(f"{n}: " for n in cell_method.coord_names) @@ -155,7 +155,7 @@ def _name(iris_obj, default="unknown"): def from_iris(cube): - """Convert a Iris cube into a DataArray""" + """Convert an Iris cube into a DataArray""" import iris.exceptions name = _name(cube)