Skip to content

Commit 0bb70e1

Browse files
committed
Remove non-working no-unit for label variables.
1 parent 122dc92 commit 0bb70e1

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/iris/fileformats/_nc_load_rules/helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,9 +1209,6 @@ 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
1214-
12151212
if any(
12161213
hasattr(cf_var.cf_data, name)
12171214
for name in ("flag_values", "flag_masks", "flag_meanings")

0 commit comments

Comments
 (0)