Skip to content

Commit

Permalink
Fixed checks for None in DynamicMap slice processing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Feb 10, 2016
1 parent a1d7050 commit fbd2ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/spaces.py
Expand Up @@ -558,9 +558,9 @@ def _slice_bounded(self, tuple_key):
cloned = self.clone(self)
for i, slc in enumerate(tuple_key):
(start, stop) = slc.start, slc.stop
if start and start < cloned.kdims[i].range[0]:
if start is not None and start < cloned.kdims[i].range[0]:
raise Exception("Requested slice below defined dimension range.")
if stop and stop > cloned.kdims[i].range[1]:
if stop is not None and stop > cloned.kdims[i].range[1]:
raise Exception("Requested slice above defined dimension range.")
cloned.kdims[i].soft_range = (start, stop)
return cloned
Expand Down

0 comments on commit fbd2ffc

Please sign in to comment.