add progress dir
This commit is contained in:
parent
818d2ca8be
commit
0b7057135f
1 changed files with 7 additions and 2 deletions
|
|
@ -8,9 +8,10 @@ class DirManager:
|
|||
The structures is as follows:
|
||||
tests dir/
|
||||
session_dir-1/
|
||||
progress
|
||||
records
|
||||
states
|
||||
results
|
||||
states
|
||||
session_dir-2/
|
||||
records
|
||||
...
|
||||
|
|
@ -25,7 +26,7 @@ class DirManager:
|
|||
|
||||
def create_all_dirs(self):
|
||||
self.create_dirs(self._output_dir, exist_ok=True)
|
||||
self.create_dirs([self.SESSION, self.RECORDS, self.STATES, self.RESULTS], exist_ok=True)
|
||||
self.create_dirs([self.SESSION, self.RECORDS, self.STATES, self.RESULTS, self.PROGRESS], exist_ok=True)
|
||||
|
||||
@property
|
||||
def OUTPUT(self):
|
||||
|
|
@ -47,6 +48,10 @@ class DirManager:
|
|||
def RESULTS(self):
|
||||
return self.SESSION / Path("results")
|
||||
|
||||
@property
|
||||
def PROGRESS(self):
|
||||
return self.SESSION / Path("progress")
|
||||
|
||||
@staticmethod
|
||||
def create_dirs(dirs: Path | list[Path] | dict[str, Path], exist_ok=False):
|
||||
match dirs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue