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

Merge branch 'master' of git.ecdf.ed.ac.uk:swain-lab/python-pipeline/post-processing

Former-commit-id: 4407118bd745f63bb800ec8f9db3f06193edd01f
parents 1ff9b1cb 2a8dbc43
No related branches found
No related tags found
No related merge requests found
...@@ -212,6 +212,7 @@ class PostProcessor: ...@@ -212,6 +212,7 @@ class PostProcessor:
else: else:
raise ("Outpath not defined", type(dataset)) raise ("Outpath not defined", type(dataset))
<<<<<<< HEAD
if isinstance(result, dict): # Multiple Signals as output if isinstance(result, dict): # Multiple Signals as output
for k, v in result: for k, v in result:
self.write_result( self.write_result(
...@@ -224,6 +225,18 @@ class PostProcessor: ...@@ -224,6 +225,18 @@ class PostProcessor:
"/postprocessing/" + process + "/" + outpath, "/postprocessing/" + process + "/" + outpath,
result, result,
metadata={}, metadata={},
=======
if isinstance(result, dict): # Multiple Signals as output
for k, v in result:
self.write_result(
"/postprocessing/" + process + "/" + outpath +
f'/{k}',
v, metadata={}
)
else:
self.write_result(
"/postprocessing/" + process + "/" + outpath, result, metadata={}
>>>>>>> 6578a57ac530cb518e07f0d5dcfc9523864973c2
) )
def write_result( def write_result(
......
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