Skip to content

Commit a8d022e

Browse files
committed
Fix search+replace error.
1 parent ca5872a commit a8d022e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iris/fileformats/netcdf/saver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,8 +1578,8 @@ def _get_element_variable_name(self, cube_or_mesh, element):
15781578
name = element.standard_name or element.long_name
15791579
if not name or set(name).intersection(string.whitespace):
15801580
# We need to invent a name, based on its associated dimensions.
1581-
if cube is not None and cube.elements(element):
1582-
# It is a regular cube elementinate.
1581+
if cube is not None and cube.coords(element):
1582+
# It is a regular cube coordinate.
15831583
# Auto-generate a name based on the dims.
15841584
name = ""
15851585
for dim in cube.coord_dims(element):

0 commit comments

Comments
 (0)