mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 13:41:50 +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:
parent
07ae4c67e2
commit
f4a30fb5c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user