From cf190a95e7f6b0aa8b46542ffacd846c8e92103c Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Thu, 22 Jul 2021 12:16:56 +0100 Subject: [PATCH 1/2] Make cube summary list attributes last. --- lib/iris/_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iris/_representation.py b/lib/iris/_representation.py index e8cb1effd5..6d0e6e2896 100644 --- a/lib/iris/_representation.py +++ b/lib/iris/_representation.py @@ -311,7 +311,7 @@ def add_scalar_section(section_class, title, *args): "Scalar cell measures:", scalar_cell_measures, ) - add_scalar_section(AttributeSection, "Attributes:", cube.attributes) add_scalar_section( CellMethodSection, "Cell methods:", cube.cell_methods ) + add_scalar_section(AttributeSection, "Attributes:", cube.attributes) From 080a18391f0698c558fa130f4609be29b1494381 Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Thu, 22 Jul 2021 12:39:36 +0100 Subject: [PATCH 2/2] Tiny test fix. --- lib/iris/tests/unit/representation/test_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iris/tests/unit/representation/test_representation.py b/lib/iris/tests/unit/representation/test_representation.py index 238772a10c..c12088a0ba 100644 --- a/lib/iris/tests/unit/representation/test_representation.py +++ b/lib/iris/tests/unit/representation/test_representation.py @@ -72,8 +72,8 @@ def test_blank_cube(self): expected_scalar_sections = [ "Scalar coordinates:", "Scalar cell measures:", - "Attributes:", "Cell methods:", + "Attributes:", ] self.assertEqual(