Mercurial > repos > bimib > marea_2
changeset 232:1c8792454765 draft
Uploaded
author | luca_milaz |
---|---|
date | Sat, 03 Aug 2024 12:02:31 +0000 |
parents | 8e66f173ad60 |
children | eecce174709c |
files | marea_2/flux_simulation.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/flux_simulation.py Sat Aug 03 11:52:27 2024 +0000 +++ b/marea_2/flux_simulation.py Sat Aug 03 12:02:31 2024 +0000 @@ -230,7 +230,7 @@ df_median= pd.DataFrame() df_quantiles= pd.DataFrame() - df_samples = pd.read_csv(ARGS.output_folder + model_name + '.csv', sep = '\t') + df_samples = pd.read_csv(ARGS.output_folder + model_name + '.csv', sep = '\t', index_col = 0).T df_samples = df_samples.round(8) for output_type in output_types: @@ -343,17 +343,17 @@ if("mean" in ARGS.output_types): all_mean = all_mean.fillna(0.0) all_mean = all_mean.sort_index() - write_to_file(all_mean, "mean", False) + write_to_file(all_mean.T, "mean", False) if("median" in ARGS.output_types): all_median = all_median.fillna(0.0) all_median = all_median.sort_index() - write_to_file(all_median, "median", False) + write_to_file(all_median.T, "median", False) if("quantiles" in ARGS.output_types): all_quantiles = all_quantiles.fillna(0.0) all_quantiles = all_quantiles.sort_index() - write_to_file(all_quantiles, "quantiles", False) + write_to_file(all_quantiles.T, "quantiles", False) index_result = 3 if("pFBA" in ARGS.output_type_analysis):