Skip to content

Commit

Permalink
Add chunkmem to VirtualFullArray, which was missed in #447 (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite authored Aug 29, 2024
1 parent ff605e3 commit 3b8fc33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cubed/storage/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def __getitem__(self, key):
newshape, fill_value=self.fill_value, dtype=self.dtype
)

@property
def chunkmem(self):
# take broadcast trick into account
return array_memory(self.dtype, (1,))


class VirtualOffsetsArray:
"""An array that is never materialized (in memory or on disk) and contains sequentially incrementing integers."""
Expand Down

0 comments on commit 3b8fc33

Please sign in to comment.