Commit e165f3f8 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Add file with workflow parameters saved in

parent c5933044
......@@ -859,6 +859,18 @@ class Workflow(threading.Thread):
def wf_execution_wrapper(self):
getattr(self, self.function)()
def _write_parameters(self):
ofile = self.directory + "/.wf-parameters.txt"
params = self.get_parameters_per_groups()[0]
print(ofile)
print(params)
with open(ofile, "w") as wfile:
for group, g_params in params.items():
wfile.write("#" + group + "\n")
for g_param in g_params:
wfile.write(g_param.name + ": " + str(g_param) + "\n")
wfile.write("\n")
def run(self):
"""
......@@ -874,6 +886,7 @@ class Workflow(threading.Thread):
self.end_time = None
# if some args are provided, let's fill the parameters
self._set_parameters(self.args)
self._write_parameters()
self._serialize()
# if pre_processing has not been done yet
if self.__step == 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment