Index: wflow-py/wflow/wf_netcdfio.py =================================================================== diff -u -r7b23641f11fe15d03482a58d08d372f62d449618 -rc51d6ab8cffdf7a63dfa18fc4750728d29100ef9 --- wflow-py/wflow/wf_netcdfio.py (.../wf_netcdfio.py) (revision 7b23641f11fe15d03482a58d08d372f62d449618) +++ wflow-py/wflow/wf_netcdfio.py (.../wf_netcdfio.py) (revision c51d6ab8cffdf7a63dfa18fc4750728d29100ef9) @@ -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: