Skip to content

Commit

Permalink
VoxelSet to np.array via self.get_raw()
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Sep 13, 2023
1 parent 707e0fa commit 43c6986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bsb/voxels.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def __init__(self, voxels, size, data=None, data_keys=None, irregular=False):
def __iter__(self):
return iter(self.get_raw(copy=False))

def __array__(self):
return self.get_raw(copy=False)

def __len__(self):
return len(self.get_raw(copy=False))

Expand Down

0 comments on commit 43c6986

Please sign in to comment.