Skip to content

Commit

Permalink
Fixed flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 10, 2019
1 parent 26b22f3 commit 04e4dd9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions holoviews/core/data/multipath.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def validate(cls, dataset, vdims=True):

@classmethod
def geom_type(cls, eltype):
from holoviews.element import Polygons, Path, Points
from holoviews.element import Polygons, Path
if issubclass(eltype, Polygons):
return 'Polygon'
elif issubclass(eltype, Path):
Expand Down Expand Up @@ -393,13 +393,6 @@ def add_dimension(cls, dataset, dimension, dim_pos, values, vdim):
def iloc(cls, dataset, index):
rows, cols = index
scalar = False
if isinstance(cols, slice):
dims = [d for d in dataset.dimensions()][cols]
elif np.isscalar(cols):
scalar = np.isscalar(rows)
dims = [dataset.get_dimension(cols)]
else:
dims = [dataset.get_dimension(d).name for d in cols]

template = cls._inner_dataset_template(dataset)
if cls.geom_type(type(dataset)) != 'Point':
Expand Down

0 comments on commit 04e4dd9

Please sign in to comment.