Spaces:
Runtime error
Runtime error
| import numpy as np | |
| with open("spers_tr.txt", "r") as fp: | |
| print(fp) | |
| delim="\n" | |
| for line in fp: | |
| # print("READ") | |
| #line = line[:-1] | |
| if delim is not None: | |
| line = line.split(delim) | |
| print(line,type(line)) | |
| ''' | |
| def conv(fld): | |
| return -float(fld[:-1]) if fld.endswith(b'-') else float(fld) | |
| print(np.loadtxt("spers_tr.txt"), converters=conv ) | |
| ''' | |