Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8db30bcd authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Added one parameter to formatTableStandard + improved display

- suppressed the '        dict(selector="th:last-of-type", props=barright)' which just added a line at the end of the headers...
- added a parameter start, allowing to start counting the groups after a number of lines
- added an initial bar for this number of lines
parent 51231e62
No related branches found
No related tags found
No related merge requests found
...@@ -136,12 +136,13 @@ standardStyles6 = [ ...@@ -136,12 +136,13 @@ standardStyles6 = [
cellFormat = {'Size': '{:0.0f}','Success rate': '{:0.2f}','Incoherence': '{:0.2f}','Semantic precision': '{:0.2f}','Semantic F-measure': '{:0.2f}','Semantic recall': '{:0.2f}','Syntactic F-measure': '{:0.2f}','Convergence': '{:0.0f}'} cellFormat = {'Size': '{:0.0f}','Success rate': '{:0.2f}','Incoherence': '{:0.2f}','Semantic precision': '{:0.2f}','Semantic F-measure': '{:0.2f}','Semantic recall': '{:0.2f}','Syntactic F-measure': '{:0.2f}','Convergence': '{:0.0f}'}
def formatTableStandard( style, size=0 ): def formatTableStandard( style, size=0, start=0 ):
standardStyles = [ standardStyles = [
dict(selector="th:last-of-type", props=barright) dict(selector="th:last-of-type", props=barright)
] ]
standardStyles += [ standardStyles = [
dict(selector="tr:nth-child("+str(size)+"n)", props=barbelow) dict(selector="tr:nth-child("+str(start)+")", props=barbelow),
dict(selector="tr:nth-child("+str(size)+"n+"+str(start)+")", props=barbelow)
] ]
style.set_table_styles( standardStyles ) style.set_table_styles( standardStyles )
style.format( cellFormat ) style.format( cellFormat )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment