Skip to content

Commit

Permalink
fix minor with saving
Browse files Browse the repository at this point in the history
  • Loading branch information
maypink committed Dec 9, 2023
1 parent 1fe1c0d commit a6f2b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golem/core/optimisers/adaptive/mab_agents/mab_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def save(self, path_to_save: Optional[str] = None):
if not path_to_save.endswith('.pkl'):
os.makedirs(path_to_save, exist_ok=True)
mabs_num = [int(name.split('_')[0]) for name in os.listdir(path_to_save)
if re.fullmatch(r'\d_mab.pkl', name)]
if re.fullmatch(r'\d*_mab.pkl', name)]
if not mabs_num:
max_saved_mab = 0
else:
Expand Down

0 comments on commit a6f2b90

Please sign in to comment.