Skip to content
Permalink
Browse files

Removed index validation for empty Options

  • Loading branch information...
jlstevens committed Mar 26, 2018
1 parent 1a3d58f commit d84aeee6f2298eab0d8f66e92bf5826ad47ff25e
Showing with 1 addition and 3 deletions.
  1. +1 −3 holoviews/core/options.py
@@ -471,10 +471,8 @@ def __getitem__(self, index):
Infinite cyclic indexing of options over the integers,
looping over the set of defined Cycle objects.
"""
if len(self.kwargs) == 0 and index==0:
if len(self.kwargs) == 0:
return {}
elif len(self.kwargs) == 0:
raise IndexError('Empty options object only has a zero index')

cycles = {k:v.values for k,v in self.kwargs.items() if isinstance(v, Cycle)}
options = {}

0 comments on commit d84aeee

Please sign in to comment.
You can’t perform that action at this time.