mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
Fix a subtablesindex bug that skip last molecule of COLUMN and TBE format
This commit is contained in:
parent
488a4a3fb6
commit
aeae909a36
@ -102,6 +102,7 @@ class dataFileBase(object):
|
|||||||
if str(table[i,0])!="":
|
if str(table[i,0])!="":
|
||||||
subtablesindex.append((firstindex,i-1))
|
subtablesindex.append((firstindex,i-1))
|
||||||
firstindex=i
|
firstindex=i
|
||||||
|
subtablesindex.append((firstindex,np.size(table,0)))
|
||||||
for first, last in subtablesindex:
|
for first, last in subtablesindex:
|
||||||
for col in range(2,np.size(table,1)):
|
for col in range(2,np.size(table,1)):
|
||||||
datacls=dict()
|
datacls=dict()
|
||||||
@ -133,6 +134,7 @@ class dataFileBase(object):
|
|||||||
if str(table[i,0])!="":
|
if str(table[i,0])!="":
|
||||||
subtablesindex.append((firstindex,i-1))
|
subtablesindex.append((firstindex,i-1))
|
||||||
firstindex=i
|
firstindex=i
|
||||||
|
subtablesindex.append((firstindex,np.size(table,0)))
|
||||||
for first, last in subtablesindex:
|
for first, last in subtablesindex:
|
||||||
datacls=dict()
|
datacls=dict()
|
||||||
mymolecule=str(table[first,0])
|
mymolecule=str(table[first,0])
|
||||||
|
Loading…
Reference in New Issue
Block a user