def processPathsDatesList(sP): sT = [] # print '\nsP: ', sP for p in sP: s = dssFile.get(p, 1) sT.append(s.times) # print '\nsT: ', sT # timesListHec = [] t = HecTime() dList = [] for p in sT: iList = [] for i in p: t.set(i) h = t.date(4) iList.append(deepcopy(h)) dList.append(iList) # print '\ndList: ', dList return dList
for p in sP: s = dssFile.get(p, 1) sT.append(s.times) # print 'sT:', sT timesListHec = [] t = HecTime() dList = [] for p in sT: # print '\np: ', p iList = [] for i in p: # print '\ni: ', i t.set(i) # h = t.dateAndTime(4) h = t.date(4) iList.append(deepcopy(h)) dList.append(iList) print '\ndList: ', dList print '\n#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#' print '#End Process Dates to tList' print '#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#' #for outerlist in zip(sweData, tData, pData): # for innerlist in outerlist: # print 'length of each list of Zipped Values: ', len(innerlist) # #for l in sweData: # print 'length of each list of Zipped Values: ', len(l)