Skip to content

Commit 9c6397c

Browse files
committed
fix formatting bug
1 parent 139ea87 commit 9c6397c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/core/formatting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ def summarize_datavar(name, var, col_width):
273273

274274
def summarize_coord(name, var, col_width):
275275
from .variable import IndexVariable
276-
is_index = name in var.dims and isinstance(var, IndexVariable)
276+
# is there a cleaner way to check if something is an index variable?
277+
variable = getattr(var, 'variable', var)
278+
is_index = name in var.dims and isinstance(variable, IndexVariable)
277279
show_values = var._in_memory
278280
marker = u'*' if is_index else u' '
279281
if is_index:

0 commit comments

Comments
 (0)