pymead.utils.misc.make_ga_opt_dir#

make_ga_opt_dir(rootdir: str, ga_opt_dir_name: str)[source]#

Creates a clean directory for optimization by finding the integer tags of all the directories in the root optimization directory with the same name as ga_opt_dir_name and incrementing the maximum integer by one. For example, if the root optimization directory contains subdirectories named ga_opt_5, ga_opt_7, and ga_opt_8, the newly created directory will be named ga_opt_9.