Skip to content

Commit 74a5036

Browse files
committed
Revert 954c16c since it was unnecessary
The alledged issue didn't exist and checkpoint folders are created by the keras callback automatically already. I misread tests on this and didn't catch that the problem I was seeing was caused by a different part of my pipeline.
1 parent 954c16c commit 74a5036

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bayesflow/workflows/basic_workflow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ def __init__(
125125
file_ext = self.checkpoint_name + ".weights.h5"
126126
else:
127127
file_ext = self.checkpoint_name + ".keras"
128-
129-
# If the directory checkpoint_filepath does not exist yet, create it.
130-
os.makedirs(self.checkpoint_filepath, exist_ok=True)
131-
132128
checkpoint_full_filepath = os.path.join(self.checkpoint_filepath, file_ext)
133129
if os.path.exists(checkpoint_full_filepath):
134130
msg = (

0 commit comments

Comments
 (0)