Skip to content

Commit

Permalink
fix formatting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rabernat committed Sep 10, 2018
1 parent 139ea87 commit 9c6397c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/core/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ def summarize_datavar(name, var, col_width):

def summarize_coord(name, var, col_width):
from .variable import IndexVariable
is_index = name in var.dims and isinstance(var, IndexVariable)
# is there a cleaner way to check if something is an index variable?
variable = getattr(var, 'variable', var)
is_index = name in var.dims and isinstance(variable, IndexVariable)
show_values = var._in_memory
marker = u'*' if is_index else u' '
if is_index:
Expand Down

0 comments on commit 9c6397c

Please sign in to comment.