From e0abe67e91d49a43f64727180ebbb6fb2e6d9124 Mon Sep 17 00:00:00 2001 From: Charly LAMOTHE <lamothe.c@intlocal.univ-amu.fr> Date: Tue, 5 Nov 2019 14:32:51 +0100 Subject: [PATCH] Remove useless sorting in resolve_experiment_id --- code/bolsonaro/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/code/bolsonaro/utils.py b/code/bolsonaro/utils.py index a4d86e0..82e5018 100644 --- a/code/bolsonaro/utils.py +++ b/code/bolsonaro/utils.py @@ -15,7 +15,6 @@ def resolve_experiment_id(models_dir): ids = [x for x in os.listdir(models_dir) if os.path.isdir(models_dir + os.sep + x)] if len(ids) > 0: - ids.sort(key=int) return int(max([int(i) for i in ids])) + 1 return 1 -- GitLab