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

Commit

Permalink
Document RootNumpyUnconvertibleWarning. Fix #332
Browse files Browse the repository at this point in the history
  • Loading branch information
ndawe committed Aug 7, 2017
1 parent 301cb49 commit f547e47
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 f547e47

Please sign in to comment.