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

More precisions when number of columns of the tabular are not the same in the point of view of the parser

This commit is contained in:
Mickaël Véril 2019-11-13 17:27:50 +01:00
parent 07ae4c67e2
commit f4a30fb5c6

View File

@ -121,8 +121,9 @@ def tabularToData(table,commands=None):
lnewtable.append(r)
lens=[len(x) for x in lnewtable]
#Check if all rows have the same dimension
if(len(set(lens))!=1):
raise ValueError("This tabular is not supported")
slens=set(lens)
if(len(slens)!=1):
raise ValueError("This tabular is not supported because lines have not the same column numbers the culumns size are {}".format(lens))
import numpy as np
table=np.array(lnewtable,TexNode)
return table