Skip to content

Commit

Permalink
Merge pull request #584 from ioam/raster_index
Browse files Browse the repository at this point in the history
Fixed bug for single index on Raster types
  • Loading branch information
jlstevens committed Mar 30, 2016
2 parents 4e6ca59 + 1469c11 commit ad73056
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/element/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ def __getitem__(self, coords):
if coords is () or coords == slice(None, None):
return self

if not isinstance(coords, tuple):
coords = (coords, slice(None))
if len(coords) > (2 + self.depth):
raise KeyError("Can only slice %d dimensions" % 2 + self.depth)
elif len(coords) == 3 and coords[-1] not in [self.vdims[0].name, slice(None)]:
Expand Down

0 comments on commit ad73056

Please sign in to comment.