Skip to content
Snippets Groups Projects
Commit e0abe67e authored by Charly LAMOTHE's avatar Charly LAMOTHE
Browse files

Remove useless sorting in resolve_experiment_id

parent a6a476ce
No related branches found
No related tags found
1 merge request!3clean scripts
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment