Skip to content

Commit

Permalink
handle case where masked array has no true
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 17, 2024
1 parent 1b046e7 commit 9e91495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asdf/_core/_converters/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def to_yaml_tree(self, obj, tag, ctx):
if strides is not None:
result["strides"] = list(strides)

if isinstance(data, ma.MaskedArray) and np.any(data.mask):
if isinstance(data, ma.MaskedArray):
if options.storage_type == "inline":
ctx._blocks._set_array_storage(data.mask, "inline")

Expand Down

0 comments on commit 9e91495

Please sign in to comment.