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

Commit

Permalink
Merge pull request #339 from ndawe/master
Browse files Browse the repository at this point in the history
Document RootNumpyUnconvertibleWarning. Fix #332
  • Loading branch information
ndawe committed Aug 7, 2017
2 parents 301cb49 + f547e47 commit b88719b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ root_numpy
stretch
dup_idx
blockwise_inner_join
RootNumpyUnconvertibleWarning

root_numpy.tmva
---------------
Expand Down
9 changes: 8 additions & 1 deletion root_numpy/_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@


class RootNumpyUnconvertibleWarning(RuntimeWarning):
pass
"""
This warning is raised when root_numpy is unable to convert a branch into a
column of a NumPy array because there is no converter for the type. If the
user explicitly requests a branch that cannot be converted, an error is
raised. If the user does not specify a list of branches in an attempt to
convert all branches, then this warning is raised for each branch that
cannot be converted and these branches are merely skipped.
"""

warnings.simplefilter('always', RootNumpyUnconvertibleWarning)

0 comments on commit b88719b

Please sign in to comment.