Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #171 from scikit-hep/issue-170
Browse files Browse the repository at this point in the history
Adapt for Numpy 1.17.0
  • Loading branch information
jpivarski authored Jul 29, 2019
2 parents aaa5e70 + 997b107 commit 509169e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awkward/array/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _util_toarray(cls, value, defaultdtype, passthrough=None):
else:
try:
return cls.numpy.frombuffer(value, dtype=getattr(value, "dtype", defaultdtype)).reshape(getattr(value, "shape", -1))
except AttributeError:
except (AttributeError, TypeError):
if len(value) == 0:
return cls.numpy.array(value, dtype=defaultdtype, copy=False)
else:
Expand Down
2 changes: 1 addition & 1 deletion awkward/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import re

__version__ = "0.12.3"
__version__ = "0.12.4"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 509169e

Please sign in to comment.