Skip to content

Commit df8bc42

Browse files
str type only valid from CF-1.8 onwards.
1 parent 4f1b37d commit df8bc42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cfchecker/cfchecks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,13 @@ def _checker(self):
738738
numpy.int32,
739739
numpy.float32,
740740
numpy.double,
741-
str,
742741
'int16',
743742
'float32']
744743

744+
if self.version >= vn1_8:
745+
# String type valid from CF-1.8
746+
valid_types.append(str)
747+
745748
# Check each variable
746749
for var in list(self.f.variables.keys()):
747750

0 commit comments

Comments
 (0)