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:
|
The structures is as follows:
|
||||||
tests dir/
|
tests dir/
|
||||||
session_dir-1/
|
session_dir-1/
|
||||||
|
progress
|
||||||
records
|
records
|
||||||
states
|
|
||||||
results
|
results
|
||||||
|
states
|
||||||
session_dir-2/
|
session_dir-2/
|
||||||
records
|
records
|
||||||
...
|
...
|
||||||
|
|
@ -25,7 +26,7 @@ class DirManager:
|
||||||
|
|
||||||
def create_all_dirs(self):
|
def create_all_dirs(self):
|
||||||
self.create_dirs(self._output_dir, exist_ok=True)
|
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
|
@property
|
||||||
def OUTPUT(self):
|
def OUTPUT(self):
|
||||||
|
|
@ -47,6 +48,10 @@ class DirManager:
|
||||||
def RESULTS(self):
|
def RESULTS(self):
|
||||||
return self.SESSION / Path("results")
|
return self.SESSION / Path("results")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def PROGRESS(self):
|
||||||
|
return self.SESSION / Path("progress")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_dirs(dirs: Path | list[Path] | dict[str, Path], exist_ok=False):
|
def create_dirs(dirs: Path | list[Path] | dict[str, Path], exist_ok=False):
|
||||||
match dirs:
|
match dirs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue