Skip to content

Commit c7fe23d

Browse files
Merge pull request #88 from TUBklima/master
updated numpy.issubdtype checks to np.integer and np.floating
2 parents fab09a3 + 0e3c7eb commit c7fe23d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cfchecker/cfchecks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,8 +1667,8 @@ def chkGridMappingVar(self, varName):
16671667
if is_str_or_basestring(var.getncattr(attribute)):
16681668
attr_type = 'S'
16691669

1670-
elif (numpy.issubdtype(attr_type, numpy.int) or
1671-
numpy.issubdtype(attr_type, numpy.float) or
1670+
elif (numpy.issubdtype(attr_type, numpy.integer) or
1671+
numpy.issubdtype(attr_type, numpy.floating) or
16721672
attr_type == numpy.ndarray):
16731673
attr_type = 'N'
16741674

@@ -2085,7 +2085,7 @@ def chkAttribute(self, attribute, varName, allCoordVars, geometryContainerVars):
20852085

20862086
if is_str_or_basestring(value):
20872087
attrType = 'S'
2088-
elif numpy.issubdtype(attrType, numpy.int) or numpy.issubdtype(attrType, numpy.float):
2088+
elif numpy.issubdtype(attrType, numpy.integer) or numpy.issubdtype(attrType, numpy.floating):
20892089
attrType = 'N'
20902090
elif attrType == numpy.ndarray:
20912091
attrType = 'N'

0 commit comments

Comments
 (0)