File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
clients/python/test/e2e/ci/e2e/e2e Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,8 @@ def generate_html_table(e2e_artifacts_dir: str) -> None:
158
158
raise typer .Exit (code = E2eExitCodes .CI_SCRIPT_FAILURE )
159
159
160
160
df : pd .DataFrame = pd .DataFrame ()
161
- for file in artifacts .glob ("*.json" ):
162
- df = pd .concat ([df , pd .read_json (file )], axis = 1 )
161
+ for path in artifacts .glob ("*.json" ):
162
+ df = pd .concat ([df , pd .read_json (path )], axis = 1 )
163
163
164
164
for exit_code in df .to_numpy ().flatten ():
165
165
if not _exit_code_valid (exit_code ):
@@ -177,8 +177,9 @@ def generate_html_table(e2e_artifacts_dir: str) -> None:
177
177
{"selector" : "th" , "props" : [("background-color" , "#F2F2F2" )]},
178
178
]
179
179
180
- df = df .applymap (_exitcode_to_text )
181
- s = df .style .applymap (_make_pretty )
180
+ df = df .map (_exitcode_to_text )
181
+ df = df .reindex (sorted (df .columns ), axis = 1 ) # Sort columns alphabetically
182
+ s = df .style .map (_make_pretty )
182
183
s .set_table_attributes ('style="font-size: 20px"' )
183
184
s .set_table_styles (style )
184
185
s .set_caption ("OSPARC e2e python client vs server tests" )
You can’t perform that action at this time.
0 commit comments