Skip to content

Commit

Permalink
DictInterface only validates referenced columns (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jlstevens committed Jul 4, 2018
1 parent 3cb7c83 commit 435f00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/data/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def init(cls, eltype, data, kdims, vdims):
unpacked.append((sd, vals[:, i]))
else:
vals = vals if np.isscalar(vals) else np.asarray(vals)
if not np.isscalar(vals) and not vals.ndim == 1:
if not np.isscalar(vals) and not vals.ndim == 1 and d in dimensions:
raise ValueError('DictInterface expects data for each column to be flat.')
unpacked.append((d, vals))
if not cls.expanded([d[1] for d in unpacked if not np.isscalar(d[1])]):
Expand Down

0 comments on commit 435f00c

Please sign in to comment.