Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion lib/iris/_representation/cube_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,17 @@ def __init__(self, cube, shorten=False, name_padding=35):
vector_dim_coords = [
coord for coord in dim_coords if id(coord) not in scalar_coord_ids
]
if cube.mesh is None:
mesh_coords = []
else:
mesh_coords = [
coord for coord in aux_coords if hasattr(coord, "mesh")
]

vector_aux_coords = [
coord for coord in aux_coords if id(coord) not in scalar_coord_ids
coord
for coord in aux_coords
if (id(coord) not in scalar_coord_ids and coord not in mesh_coords)
]
vector_derived_coords = [
coord
Expand Down Expand Up @@ -300,6 +309,7 @@ def add_vector_section(title, contents, iscoord=True):
)

add_vector_section("Dimension coordinates:", vector_dim_coords)
add_vector_section("Mesh coordinates:", mesh_coords)
add_vector_section("Auxiliary coordinates:", vector_aux_coords)
add_vector_section("Derived coordinates:", vector_derived_coords)
add_vector_section("Cell measures:", vector_cell_measures, False)
Expand Down
2 changes: 2 additions & 0 deletions lib/iris/experimental/ugrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ def __eq__(self, other):
if hasattr(other, "metadata"):
# metadata comparison
eq = self.metadata == other.metadata
if eq:
eq = self.shape == other.shape
if eq:
eq = (
self.indices_by_src() == other.indices_by_src()
Expand Down
Loading