Change == None to is None for numpy array
This commit is contained in:
parent
518157a264
commit
c51c9aacca
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@
|
|||
# Sep 14, 2015 4868 rjpeter Updated writePartialHDFData to create the dataset if
|
||||
# it doesn't exist.
|
||||
# Oct 20, 2015 4982 nabowle Verify datatypes match when replacing data.
|
||||
# Nov 30, 2016 mjames@ucar Change == None to is None (for numpy array).
|
||||
#
|
||||
|
||||
import h5py, os, numpy, pypies, re, logging, shutil, time, types, traceback
|
||||
|
@ -162,7 +163,7 @@ class H5pyDataStore(IDataStore.IDataStore):
|
|||
recMaxDims = rec.getMaxSizes()
|
||||
for i in range(nDims):
|
||||
szDims1[i] = szDims[nDims - i - 1]
|
||||
if recMaxDims == None or recMaxDims[i] == 0:
|
||||
if recMaxDims is None or recMaxDims[i] == 0:
|
||||
maxDims[i] = None
|
||||
else:
|
||||
maxDims[i] = recMaxDims[i]
|
||||
|
|
Loading…
Add table
Reference in a new issue