From c0852b663a7df4981c61291e51a046c2c4a1e795 Mon Sep 17 00:00:00 2001
From: Joerg Martin <joerg.martin@ptb.de>
Date: Thu, 16 Dec 2021 13:44:43 +0100
Subject: [PATCH] Better sorted output of create_tabular

---
 Experiments/create_tabular.py | 13 +++++++++----
 README.md                     |  3 +++
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Experiments/create_tabular.py b/Experiments/create_tabular.py
index 3d12843..bd7f323 100644
--- a/Experiments/create_tabular.py
+++ b/Experiments/create_tabular.py
@@ -13,23 +13,28 @@ for filename in list_of_result_files:
        results[data] = json.load(f)
 
 ## header
-header_string = 'DATA'
+header_string = 'DATA                '
+offset = 20
 for metric in metrics_to_display:
-    header_string += f'          {metric}'
+    header_string += f'     {metric}    '
 print(header_string)
+print(offset * '_' + 70 * '_')
 ## results
 for data in results.keys():
     noneiv_results = [results[data]['noneiv'][metric]
             for metric in metrics_to_display]
-    noneiv_results_string = f'{data} - nonEiV:'
+    noneiv_row_name  = f'{data} - nonEiV:'
+    noneiv_results_string = noneiv_row_name + (offset - len(noneiv_row_name)) * ' '
     for [metric_mean, metric_std] in noneiv_results:
         noneiv_results_string += f'  {metric_mean:.3f} ({metric_std:.3f})'
     print(noneiv_results_string)
     eiv_results = [results[data]['eiv'][metric]
             for metric in metrics_to_display]
-    eiv_results_string = f'{data} - EiV:'
+    eiv_row_name  = f'{data} - EiV:'
+    eiv_results_string = eiv_row_name + (offset - len(eiv_row_name)) * ' '
     for [metric_mean, metric_std] in eiv_results:
         eiv_results_string += f'  {metric_mean:.3f} ({metric_std:.3f})'
     print(eiv_results_string)
+    print(offset * '_' + 70 * '_')
 
 
diff --git a/README.md b/README.md
index 7551f09..7547a9d 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,9 @@ pip install EIVPackage/
 
 Installing this package will make 3 modules available to the python environment: `EIVArchitectures` (for building EiV Models), `EIVTrainingRoutines` (containing a general training framework), `EIVGeneral` (containing a single module needed for repeated sampling).
 
+## Missing
++ Tell to create folders, like `Experiments/results`
+
 ## Contributing
 
 Will be completed upon publication. The code will be made publically available on a repository under a BSD-like license.
-- 
GitLab