From 0b10a8d9ed8623c649af81bea95b66290636568e Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Tue, 23 Jul 2024 02:56:50 -0400 Subject: [PATCH] feat: add numpy function for array --- crackle/array.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crackle/array.py b/crackle/array.py index 3a5f639..08b9590 100644 --- a/crackle/array.py +++ b/crackle/array.py @@ -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)