Skip to content

Commit

Permalink
feat: add numpy function for array
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jul 23, 2024
1 parent e702320 commit 0b10a8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crackle/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def astype(self, dtype):
def renumber(self, start:int = 0) -> bytes:
return CrackleArray(renumber(self.binary, start))

def numpy(self):
return self.decompress()

def decompress(self, label:Optional[int] = None) -> bytes:
return decompress(self.binary, label)

Expand Down

0 comments on commit 0b10a8d

Please sign in to comment.