Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions holoviews/core/data/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ def validate(cls, dataset, vdims=True):
"non-matching array dimensions:\n\n%s"
% ('\n'.join(nonmatching)), cls)

@classmethod
def irregular(cls, dataset, dim):
if dataset.data[dimension_name(dim)].ndim > 1:
return True
dim_name = dimension_name(dim)
return dim_name not in dataset.data.dims and dim_name in dataset.data.coords

@classmethod
def compute(cls, dataset):
return dataset.clone(dataset.data.compute())
Expand Down