Skip to content

Commit 3dc7f3c

Browse files
committed
Fix da.cf.describe() not showing standard_names
1 parent a46b52a commit 3dc7f3c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cf_xarray/accessor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,12 +854,9 @@ def describe(self):
854854
text += f"\t{key}: {measures[key] if key in measures else []}\n"
855855

856856
text += "\nStandard Names:\n"
857-
if isinstance(self._obj, DataArray):
858-
text += "\tunsupported\n"
859-
else:
860-
for key, value in sorted(self.standard_names.items()):
861-
if key not in _COORD_NAMES:
862-
text += f"\t{key}: {value}\n"
857+
for key, value in sorted(self.standard_names.items()):
858+
if key not in _COORD_NAMES:
859+
text += f"\t{key}: {value}\n"
863860

864861
print(text)
865862

0 commit comments

Comments
 (0)