10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 18:06:06 +02:00

Fix a subtablesindex bug that skip last molecule of COLUMN and TBE format

This commit is contained in:
Mickaël Véril 2020-02-16 15:13:53 +01:00
parent 488a4a3fb6
commit aeae909a36

View File

@ -102,6 +102,7 @@ class dataFileBase(object):
if str(table[i,0])!="":
subtablesindex.append((firstindex,i-1))
firstindex=i
subtablesindex.append((firstindex,np.size(table,0)))
for first, last in subtablesindex:
for col in range(2,np.size(table,1)):
datacls=dict()
@ -133,6 +134,7 @@ class dataFileBase(object):
if str(table[i,0])!="":
subtablesindex.append((firstindex,i-1))
firstindex=i
subtablesindex.append((firstindex,np.size(table,0)))
for first, last in subtablesindex:
datacls=dict()
mymolecule=str(table[first,0])