Skip to content

Commit b7ad0e7

Browse files
committed
bugfix
1 parent 6b63246 commit b7ad0e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cf_xarray/accessor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,9 @@ def make_text_section(subtitle, attr, valid_values, default_keys=None):
12451245

12461246
return "\n".join(rows) + "\n"
12471247

1248-
if self._obj.is_flag_variable(self._obj):
1248+
if isinstance(self._obj, xr.DataArray) and self._obj.is_flag_variable(
1249+
self._obj
1250+
):
12491251
flag_dict = create_flag_dict(self._obj)
12501252
text = f"CF Flag variable with mapping:\n\t{flag_dict!r}\n\n"
12511253
else:

0 commit comments

Comments
 (0)