Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit f5b406f

Browse files
committed
Merge pull request #214 from ndawe/fix_array_alloc
[MRG] remove unused variable
2 parents e464c76 + 1e20a5d commit f5b406f

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

root_numpy/src/_librootnumpy.cpp

Lines changed: 5 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

root_numpy/src/tree.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ cdef object tree2array(TTree* tree, branches, string selection,
318318
# Initialize the array
319319
try:
320320
arr = np.empty(num_entries, dtype=dtype)
321-
except MemoryError as ex:
321+
except MemoryError:
322322
# Raise a more informative exception
323323
raise MemoryError("failed to allocate memory for {0} array of {1} records with {2} fields".format(
324324
humanize_bytes(dtype.itemsize * num_entries), num_entries, len(dtype_fields)))

0 commit comments

Comments
 (0)