Skip to content

Commit

Permalink
Get rid of join_structured_arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Feb 7, 2020
1 parent 6892e51 commit 1a13d32
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions manimlib/utils/iterables.py
Expand Up @@ -123,21 +123,6 @@ def remove_nones(sequence):
return [x for x in sequence if x]


def join_structured_arrays(*arrays):
assert(len(arrays) > 0)

result = np.zeros(
sum([len(arr) for arr in arrays]),
dtype=arrays[0].dtype
)
lh = 0
for array in arrays:
rh = lh + len(array)
result[lh:rh] = array
lh = rh
return result


# Note this is redundant with it.chain


Expand Down

0 comments on commit 1a13d32

Please sign in to comment.