Skip to content

Commit

Permalink
compare data AND mask
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 18, 2024
1 parent e51a369 commit d0c0b41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asdf/_tests/tags/core/tests/test_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,10 @@ def test_mask_roundtrip(mask, tmp_path):

with roundtrip(tree) as af:
# assert_array_equal ignores the mask, so use equality here
assert (tree["masked"] == af["masked"]).all()
assert (tree["masked"].data == af["masked"].data).all()
assert (tree["masked"].mask == af["masked"].mask).all()
# ensure tree validity
assert (af["unmasked"] == af["unmasked"]).all()
assert (af["unmasked"] == af["masked"].data).all()
assert len(af._blocks.blocks) == 2


Expand Down

0 comments on commit d0c0b41

Please sign in to comment.