diff --git a/cf/data/data.py b/cf/data/data.py index 0c51c4e748..fbf35134f3 100644 --- a/cf/data/data.py +++ b/cf/data/data.py @@ -6051,11 +6051,13 @@ def Units(self): ) @property + @daskified(_DASKIFIED_VERBOSE) def data(self): """The data as an object identity. - **Examples:** + **Examples** + >>> d = cf.Data([1, 2], 'm') >>> d.data is d True diff --git a/cf/test/test_Data.py b/cf/test/test_Data.py index 8dc3f97f6b..405bd74a07 100644 --- a/cf/test/test_Data.py +++ b/cf/test/test_Data.py @@ -3967,6 +3967,16 @@ def test_Data_tolist(self): self.assertEqual(e, np.array(x).tolist()) self.assertTrue(d.equals(cf.Data(e))) + def test_Data_data(self): + for d in [ + cf.Data(1), + cf.Data([1, 2], fill_value=0), + cf.Data([1, 2], "m"), + cf.Data([1, 2], mask=[1,0], units="m"), + cf.Data([[0, 1, 2], [3, 4, 5]], chunks=2), + ]: + self.assertIs(d.data, d) + def test_Data_dump(self): d = cf.Data([1, 2], "m") x = (