Skip to content

Commit

Permalink
Reinstate #2477 isMaskedArray to is_masked
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Jun 5, 2017
1 parent 8c90b58 commit 56825a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/iris/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def assertDataAlmostEqual(self, data, reference_filename, **kwargs):
stats = json.load(reference_file)
self.assertEqual(stats.get('shape', []), list(data.shape))
self.assertEqual(stats.get('masked', False),
ma.isMaskedArray(data))
ma.is_masked(data))
nstats = np.array((stats.get('mean', 0.), stats.get('std', 0.),
stats.get('max', 0.), stats.get('min', 0.)),
dtype=np.float_)
Expand All @@ -435,7 +435,7 @@ def assertDataAlmostEqual(self, data, reference_filename, **kwargs):
('min', np.float_(data.min())),
('max', np.float_(data.max())),
('shape', data.shape),
('masked', ma.isMaskedArray(data)),
('masked', ma.is_masked(data)),
('mean', np.float_(data.mean()))])
with open(reference_path, 'w') as reference_file:
reference_file.write(json.dumps(stats))
Expand Down

1 comment on commit 56825a5

@corinnebosley
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. Happy with this.

Please sign in to comment.