We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8b8a0 commit 31ec154Copy full SHA for 31ec154
cf/test/test_Field.py
@@ -2749,6 +2749,14 @@ def test_Field_subspace(self):
2749
h = f.subspace(grid_longitude=np.float64(20))
2750
self.assertTrue(g.equals(h))
2751
2752
+ # Test API with 0/1/2 arguments
2753
+ kwargs = {"grid_latitude": [1]}
2754
+ i = f.subspace(**kwargs)
2755
+ j = f.subspace(0, **kwargs)
2756
+ k = f.subspace("compress", 0, **kwargs)
2757
+ self.assertEqual(i, j)
2758
+ self.assertEqual(i, k)
2759
+
2760
def test_Field_auxiliary_to_dimension_to_auxiliary(self):
2761
f = cf.example_field(0)
2762
nd = len(f.dimension_coordinates())
0 commit comments