- Timestamp:
- Mar 8, 2019, 7:17:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2385 r2386 7236 7236 if ft[0:1] == 'A' or ft[0:1] == 'a': 7237 7237 Lfmt = int(ft[1:Lft+1]) 7238 fvalues.append(lin[ichar:ichar+Lfmt+1]) 7238 #fvalues.append(lin[ichar:ichar+Lfmt+1]) 7239 fvalues.append(lin[ichar:ichar+Lfmt]) 7239 7240 ichar = ichar + Lfmt 7240 7241 elif ft[0:1] == 'F' or ft[0:1] == 'f': … … 7242 7243 Lft = len(ft.split('.')[0]) 7243 7244 Lfmt = int(ft[1:Lft]) 7244 fvalues.append(np.float(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7245 #fvalues.append(np.float(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7246 fvalues.append(np.float(rmNOnum(lin[ichar:ichar+Lfmt]))) 7245 7247 ichar = ichar + Lfmt 7246 7248 elif ft[0:1] == 'D' or ft[0:1] == 'd': … … 7248 7250 Lft = len(ft.split('.')[0]) 7249 7251 Lfmt = int(ft[1:Lft]) 7250 fvalues.append(np.float64(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7252 #fvalues.append(np.float64(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7253 fvalues.append(np.float64(rmNOnum(lin[ichar:ichar+Lfmt]))) 7251 7254 ichar = ichar + Lfmt 7252 7255 elif ft[0:1] == 'I' or ft[0:1] == 'i': 7253 7256 Lfmt = int(ft[1:Lft+1]) 7254 fvalues.append(int(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7257 #fvalues.append(int(rmNOnum(lin[ichar:ichar+Lfmt+1]))) 7258 fvalues.append(int(rmNOnum(lin[ichar:ichar+Lfmt]))) 7255 7259 ichar = ichar + Lfmt 7256 7260 elif ft.find('X') != -1 or ft.find('x') != -1:
Note: See TracChangeset
for help on using the changeset viewer.