saritha5's picture
Upload 21 files
c5f0a6a
raw
history blame contribute delete
355 Bytes
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 )
'''