Skip to content

Commit

Permalink
Fixed dtype issue when checking for ring geometry (#4468)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 9, 2020
1 parent e50c482 commit 85aa3e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/core/data/multipath.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ def ensure_ring(geom, values=None):
"""
if values is None:
values = geom
breaks = np.where(np.isnan(geom).sum(axis=1))[0]

breaks = np.where(np.isnan(geom.astype('float')).sum(axis=1))[0]
starts = [0] + list(breaks+1)
ends = list(breaks-1) + [len(geom)-1]
zipped = zip(geom[starts], geom[ends], ends, values[starts])
Expand Down

0 comments on commit 85aa3e2

Please sign in to comment.