numbbo / coco

Numerical Black-Box Optimization Benchmarking Framework
https://numbbo.github.io/coco
Other
261 stars 86 forks source link

[Bug report] cocopp overwrites output folder #2291

Closed nikohansen closed 1 month ago

nikohansen commented 4 months ago

The call

cocopp.main(observer.result_folder + ' bfgs!')

is bound to overwrite previous postprocessing results, because the code takes only the first five-or-so characters from observer.result_folder to create the outfolder name. This is probably not what the user expects to happen.

Maybe we should add a short hash from the combined pathnames and consequently overwrite only when all names are exactly the same?

nikohansen commented 1 month ago

The name is created in findfiles.get_output_directory_sub_folder.

nikohansen commented 1 month ago

fixed with https://github.com/numbbo/coco-postprocess/commit/ba468c821ce647bbb10323f40129bb8d4237b8d9