Index: wflow-py/wflow/wf_netcdfio.py =================================================================== diff -u -r7d5f079875b5a40c9d8ef46c30b5cc78a8bfb5ee -r6db581991e5855e7a1bcd815ea2c53758a3fb1e5 --- wflow-py/wflow/wf_netcdfio.py (.../wf_netcdfio.py) (revision 7d5f079875b5a40c9d8ef46c30b5cc78a8bfb5ee) +++ wflow-py/wflow/wf_netcdfio.py (.../wf_netcdfio.py) (revision 6db581991e5855e7a1bcd815ea2c53758a3fb1e5) @@ -282,7 +282,7 @@ end = starttime + dt.timedelta(seconds=timestepsecs * (self.timesteps - 1)) timeList = date_range(starttime, end, timestepsecs) - self.timestepbuffer = zeros((self.maxbuf, len(y), len(x))) + self.timestepbuffer = zeros((int(self.maxbuf), len(y), len(x))) self.bufferdirty = True self.bufflst = {} @@ -779,7 +779,7 @@ ) ncindex = pos - if self.alldat.has_key(var): + if var in self.alldat: # if ncindex == self.lstep: # Read new block of data in mem # logging.debug("reading new netcdf data block starting at: " + str(ncindex)) # for vars in self.alldat: