Skip to content

Commit

Permalink
Minor fix for invalid bound ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 14, 2018
1 parent 0c73ab6 commit 517d8f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,8 @@ def bound_range(vals, density, time_unit='us'):
assumed to be evenly spaced. Density is rounded to machine precision
using significant digits reported by sys.float_info.dig.
"""
if not len(vals):
return(np.nan, np.nan, density, False)
low, high = vals.min(), vals.max()
invert = False
if len(vals) > 1 and vals[0] > vals[1]:
Expand Down

0 comments on commit 517d8f8

Please sign in to comment.