Skip to content
Snippets Groups Projects
Commit 6d38194c authored by Alán Muñoz's avatar Alán Muñoz
Browse files

change defaults temporarily to quickly get images

Former-commit-id: b2b8c6ca8db9750e538e15a709d4d8d4a0a86eef
parent a5e91830
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,20 @@ class PostProcessorParameters(ParametersABC):
"/postprocessing/bud_metric/extraction_general_None_volume"
],
),
(
"aggregate",
[
[
"/extraction/em_ratio/np_max/mean",
"/extraction/em_ratio/np_max/median",
"/extraction/em_ratio_bgsub/np_max/mean",
"/extraction/em_ratio_bgsub/np_max/median",
"/extraction/gsum_bgsub/np_max/median",
"/extraction/gsum_bgsub/np_max/median",
"postprocessing/dsignal/postprocessing_bud_metric_extraction_general_None_volume",
]
],
),
# "savgol": ["/extraction/general/None/area"],
),
},
......@@ -66,7 +80,7 @@ class PostProcessorParameters(ParametersABC):
"picker": pickerParameters.default(),
}
},
outpaths={},
outpaths={"aggregate": "/postprocessing/experiment_wide/aggregated/"},
)
def to_dict(self):
......@@ -250,16 +264,19 @@ class PostProcessor:
else:
raise ("Outpath not defined", type(dataset))
if process not in self.parameters.to_dict()["outpaths"]:
outpath = "/postprocessing/" + process + "/" + outpath
if isinstance(result, dict): # Multiple Signals as output
for k, v in result:
self.write_result(
"/postprocessing/" + process + "/" + outpath + f"/{k}",
outpath + f"/{k}",
v,
metadata={},
)
else:
self.write_result(
"/postprocessing/" + process + "/" + outpath,
outpath,
result,
metadata={},
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment