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

Commit

Permalink
fixed #158
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Jul 9, 2019
1 parent 343052f commit 569fb3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions awkward/array/jagged.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,9 @@ def _argminmax(self, ismin):
if len(self._content.shape) != 1:
raise ValueError("cannot compute arg{0} because content is not one-dimensional".format("min" if ismin else "max"))

if len(self._content) == 0:
return self.copy(content=self.numpy.array([], dtype=self.INDEXTYPE))

contentmax = self._content.max()
shiftval = self.numpy.ceil(contentmax) + 1
if math.isnan(shiftval) or math.isinf(shiftval) or shiftval != contentmax:
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.0rc1"
__version__ = "0.12.0rc2"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 569fb3f

Please sign in to comment.