diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-17 17:45:52 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-17 17:45:52 +0000 |
| commit | 005a629ea514e97d8822b1d2e184d1839f8c6f59 (patch) | |
| tree | ed8b7238adc3aea75e7410c9305d98699b1069d9 /analysis/scripts | |
| parent | Various fixes for travis (diff) | |
| download | TCPDBench-005a629ea514e97d8822b1d2e184d1839f8c6f59.tar.gz TCPDBench-005a629ea514e97d8822b1d2e184d1839f8c6f59.zip | |
Sort methods/datasets in summary files
This is needed to ensure summary files are the same
regardless of the platform that is used to run create
them. Note that this commit does not change any of the
results.
Diffstat (limited to 'analysis/scripts')
| -rw-r--r-- | analysis/scripts/summarize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/analysis/scripts/summarize.py b/analysis/scripts/summarize.py index 426976c5..86fb2268 100644 --- a/analysis/scripts/summarize.py +++ b/analysis/scripts/summarize.py @@ -130,9 +130,9 @@ def main(): dataset_dir = os.path.join(args.result_dir, data_results) - for method in os.listdir(dataset_dir): + for method in sorted(os.listdir(dataset_dir)): method_dir = os.path.join(dataset_dir, method) - for result_file in os.listdir(method_dir): + for result_file in sorted(os.listdir(method_dir)): # print("Processing result file: %s" % result_file) fname = os.path.join(method_dir, result_file) result = load_json(fname) |
