Skip to content

Commit 4e42e41

Browse files
remove bounds error if they are not required but available
1 parent f12df99 commit 4e42e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cc_plugin_cc6/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def check_variable_definition(self, ds):
12411241
messages.append(
12421242
f"The bounds variable '{cbnds}' of dimension / coordinate '{dimCT}' of the variable '{var}' should be named '{dim_on}_bnds'."
12431243
)
1244-
else:
1244+
elif dimCT == "time":
12451245
if cbnds:
12461246
messages.append(
12471247
f"The dimension / coordinate '{dimCT}' of the variable '{var}' should not have bounds defined ('{cbnds}')."

0 commit comments

Comments
 (0)