mirror of
https://github.com/vale981/two_qubit_model
synced 2025-03-04 17:21:43 -05:00
create data path if not existent
This commit is contained in:
parent
cfe7a17bd4
commit
17c12cd8c9
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue