create data path if not existent

This commit is contained in:
Valentin Boettcher 2023-02-12 17:31:20 -05:00
parent cfe7a17bd4
commit 17c12cd8c9
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -20,6 +20,7 @@ from collections.abc import Callable
from datetime import datetime
import pickle
import os
from pathlib import Path
@dataclass
@ -458,6 +459,8 @@ class Model(ABC):
self.system.derivative(), self.t, normalize=True, real=True
)
Path(results_directory).mkdir(parents=True, exist_ok=True)
aggregates = [None for _ in range(5)]
paths = [
os.path.join(results_directory, path)