Skip to content

Commit eeb980c

Browse files
committed
Temporarily disable making str-dtyped coords 'no-unit'.
1 parent 043b0bc commit eeb980c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/iris/fileformats/_nc_load_rules/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,8 @@ def get_attr_units(cf_var, attributes, capture_invalid=False):
12091209
attributes["invalid_units"] = attr_units
12101210
attr_units = UNKNOWN_UNIT_STRING
12111211

1212-
if np.issubdtype(cf_var.dtype, np.str_):
1213-
attr_units = NO_UNIT_STRING
1212+
# if np.issubdtype(cf_var.dtype, np.str_):
1213+
# attr_units = NO_UNIT_STRING
12141214

12151215
if any(
12161216
hasattr(cf_var.cf_data, name)

0 commit comments

Comments
 (0)