aimclub / GOLEM

Graph Optimiser for Learning and Evolution of Models
https://thegolem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
63 stars 7 forks source link

Problem with `OptHistory` #229

Closed kasyanovse closed 1 year ago

kasyanovse commented 1 year ago

I encounter next message in log:

2023-10-26 12:35:20,450 - OptHistory - [WinError 3] Системе не удается найти указанный путь: 'C:\\Temp\\FEDOT\\10\\11d56b30-5a4c-47d6-87a4-b9dc53c0066c' Traceback (most recent call last): File "E:\GOLEM\golem\core\optimisers\opt_history_objects\opt_history.py", line 102, in save_current_results ind_path.mkdir(exist_ok=True) File "C:\ProgramData\miniconda3\envs\work39\lib\pathlib.py", line 1323, in mkdir self._accessor.mkdir(self, mode) FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'C:\\Temp\\FEDOT\\10\\11d56b30-5a4c-47d6-87a4-b9dc53c0066c'

It seems like there is need to add parents parameter to mkdir in save_current_results.