Skip to content

Commit

Permalink
Fixed unicode bug in XArrayInterface (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jlstevens committed May 4, 2018
1 parent b8e96a6 commit 24df133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/core/data/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def init(cls, eltype, data, kdims, vdims):
vdim_param = element_params['vdims']

def retrieve_unit_and_label(dim):
if isinstance(dim, str):
if isinstance(dim, util.basestring):
dim = Dimension(dim)
dim.unit = data[dim.name].attrs.get('units')
label = data[dim.name].attrs.get('long_name')
Expand Down

0 comments on commit 24df133

Please sign in to comment.