@@ -79,7 +79,7 @@ def _get_iris_args(attrs):
7979
8080# TODO: Add converting bounds from xarray to Iris and back
8181def 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
121121def _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
132132def _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
157157def 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