allow strings as data in ASCII file

This commit is contained in:
Martin Diehl 2019-12-05 05:45:27 +01:00
parent 1c83572589
commit 5fdf112f78
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ class Table():
else:
shapes[label]=(1,)
return Table(np.loadtxt(f),shapes,comments)
data = pd.read_csv(f,names=[i for i in range(len(labels))],sep='\s+').to_numpy()
return Table(data,shapes,comments)
def get_array(self,label):
"""