Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardized constructor signature with dimensions as positional args #1946

Merged
merged 8 commits into from
Oct 8, 2017
Prev Previous commit
Next Next commit
Fixed empty MultiInterface constructor
philippjfr committed Oct 8, 2017
commit c1ba7a2b1dc985cc7063e15f2fb84679d4c4dd7e
4 changes: 4 additions & 0 deletions holoviews/core/data/multipath.py
Original file line number Diff line number Diff line change
@@ -26,6 +26,10 @@ class MultiInterface(Interface):
def init(cls, eltype, data, kdims, vdims):
new_data = []
dims = {'kdims': eltype.kdims, 'vdims': eltype.vdims}
if kdims is not None:
dims['kdims'] = kdims
if vdims is not None:
dims['vdims'] = vdims
if not isinstance(data, list):
raise ValueError('MultiInterface data must be a list tabular data types.')
prev_interface, prev_dims = None, None