extension subfolders

This commit is contained in:
Noe Brucy
2021-07-24 20:53:21 +02:00
parent 35e5a767cb
commit 35cf8ff401
4 changed files with 37 additions and 34 deletions
+5 -3
View File
@@ -29,7 +29,7 @@ class StudyProcessor(Aggregator, HDF5Container):
selector=None,
tag=None,
unit_time=U.year,
**kwargs
**kwargs,
):
"""
Creates the basic structures needed for the outputs
@@ -43,8 +43,10 @@ class StudyProcessor(Aggregator, HDF5Container):
else:
tag_name = ""
self.filename = self.path_out + "/comp" + tag_name + ".h5"
if self.params.out.ext_subfolder:
self.filename = f"{self.path_out}/study{tag_name}.h5"
else:
self.filename = f"{self.path_out}/h5/study{tag_name}.h5"
# Select runs
if selector is None:
selector = RunSelector(