Skip to content

Commit 8d9e703

Browse files
author
mstefane
committed
.to_markdown() requires Tabulate Package. Changed to .to_string()
1 parent b7283ab commit 8d9e703

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

omc3/kmod_importer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ def output_table_single_beam(
371371
all_av_x.append(df_av_x)
372372
all_av_y.append(df_av_y)
373373

374-
averaged_tables = {"X": (tfs.concat(all_av_x, ignore_index=True)).to_markdown(),
375-
"Y": (tfs.concat(all_av_y, ignore_index=True)).to_markdown()}
374+
averaged_tables = {"X": (tfs.concat(all_av_x, ignore_index=True)).to_string(),
375+
"Y": (tfs.concat(all_av_y, ignore_index=True)).to_string()}
376376

377377
for beam in beams:
378378
LOG.debug(f"Processing result for: {beam}")
@@ -382,7 +382,7 @@ def output_table_single_beam(
382382
big_df_y = big_df[["IP", "NAME"] + cols_y]
383383
txt_output = []
384384
for name, df in [("X", big_df_x), ("Y", big_df_y)]:
385-
table_str = df.to_markdown()
385+
table_str = df.to_string()
386386
txt_output.append(f"\n============================================ {beam} Results ({name}-plane) ====================================================\n\n{table_str}\n")
387387
txt_output.append(f"\n=========================== {beam} Averaged Results ({name}-plane) ============================================================\n\n{averaged_tables[name]}\n")
388388

0 commit comments

Comments
 (0)