From f4a30fb5c66b60cef82f1d68cdf867d2e3ae0fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 13 Nov 2019 17:27:50 +0100 Subject: [PATCH] More precisions when number of columns of the tabular are not the same in the point of view of the parser --- tools/lib/LaTeX.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/lib/LaTeX.py b/tools/lib/LaTeX.py index 0c893a48..1d9d7f06 100644 --- a/tools/lib/LaTeX.py +++ b/tools/lib/LaTeX.py @@ -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