From dda0a26a3f91f819735001e6a9709fa5f7d21c67 Mon Sep 17 00:00:00 2001 From: Xingyou Song Date: Thu, 30 May 2024 14:09:35 -0700 Subject: [PATCH] Better fix to internal error PiperOrigin-RevId: 638777808 --- iris/normalizer.py | 5 ----- iris/normalizer_test.py | 1 - 2 files changed, 6 deletions(-) diff --git a/iris/normalizer.py b/iris/normalizer.py index 4da2f33..8172f96 100644 --- a/iris/normalizer.py +++ b/iris/normalizer.py @@ -169,11 +169,6 @@ def merge(self, data: Dict[str, Any]) -> None: def data(self) -> Dict[str, Any]: return copy.deepcopy(self._data) - # Used externally. - @property - def mean(self) -> np.ndarray: - return self._data[MEAN] - @data.setter def data(self, new_data: Dict[str, Any]) -> None: self._data = copy.deepcopy(new_data) diff --git a/iris/normalizer_test.py b/iris/normalizer_test.py index 2f42416..d32f47f 100644 --- a/iris/normalizer_test.py +++ b/iris/normalizer_test.py @@ -30,7 +30,6 @@ def test_meanstdbuffer(self): self.assertEqual(new_buffer._std, buffer._std) self.assertEqual(new_buffer._data['n'], buffer._data['n']) - self.assertEqual(new_buffer.mean, buffer.mean) class NormalizerTest(absltest.TestCase):