Skip to content

Commit

Permalink
Full support for reading/writing masked arrays. (#6)
Browse files Browse the repository at this point in the history
- Gave up masking for scipy matrices because it seems pretty scratchy.
- DelayedMask returns True for is_masked.
- Improved storage optimization to use the masking'ness of the input array.
  This avoids block-by-block decisions on masking status.
- Pass along buffer sizes when optimizing storage.
- Added some more tests just in case.
  • Loading branch information
LTLA authored Jan 29, 2024
1 parent c805543 commit 448d8b4
Show file tree
Hide file tree
Showing 10 changed files with 564 additions and 245 deletions.
5 changes: 5 additions & 0 deletions src/dolomite_matrix/DelayedMask.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@ def is_sparse_DelayedMask(x: DelayedMask):
"""See :py:meth:`~delayedarray.is_sparse.is_sparse`."""
return delayedarray.is_sparse(x._seed)


@delayedarray.is_masked.register
def is_masked_DelayedMask(x: DelayedMask):
"""See :py:meth:`~delayedarray.is_masked.is_masked`."""
return True
Loading

0 comments on commit 448d8b4

Please sign in to comment.