diff --git a/scripts/panacus-visualize.py b/scripts/panacus-visualize.py index 2c415eb..63bb8f0 100755 --- a/scripts/panacus-visualize.py +++ b/scripts/panacus-visualize.py @@ -221,10 +221,11 @@ def save_split_figures(ax, f, format, prefix): skip_n = count_comments(f) df = clean_multicolumn_labels(pd.read_csv(args.stats, sep='\t', header=list(range(skip_n, skip_n + N_HEADERS)), index_col=[0])) - if df.columns[0][0] not in ['hist', 'growth', 'ordered-histgrowth']: + print("test", df.columns[0][0], file=stderr) + if df.columns[0][0] not in ['hist', 'growth', 'ordered-growth']: print('This script cannot visualize the content of this type of table, exiting.', file=stderr) exit(1) - df.columns = df.columns.map(lambda x: (x[0], x[1], x[2] and int(x[2]), x[3] and float(x[3]))) + df.columns = df.columns.map(lambda x: (x[0], x[1], x[2] and int(x[2].replace("A", "")), x[3] and float(x[3].replace("R", "")))) n, m, non_cum_plots = get_subplot_dim(df) # setup fancy plot look diff --git a/src/io.rs b/src/io.rs index 10e28c3..c441f44 100644 --- a/src/io.rs +++ b/src/io.rs @@ -1329,7 +1329,7 @@ pub fn write_ordered_histgrowth_table( .zip(hist_aux.coverage.iter()) .zip(&hist_aux.quorum) .map(|(((p, t), c), q)| { - vec![p.to_string(), t.to_string(), c.to_string(), q.to_string()] + vec![p.to_string(), t.to_string(), c.get_string(), q.get_string()] }) .collect::>>(), );