Skip to content
Snippets Groups Projects
Commit 1e09d3b0 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

worked around inspect.signature-not-supported obstacles

parent ef9236af
No related branches found
No related tags found
4 merge requests!193Release 1.4,!188Release 1.4,!49Dataprocessing features,!44Dataprocessing features
Pipeline #3611 passed with stage
in 7 minutes and 24 seconds
......@@ -82,8 +82,12 @@ def evalFuncString(full_func_string):
f"dispatcher. \n Please select from: \n{availability_list}"
)
para_names = inspect.getfullargspec(func).args[1:1 + len(paras)]
return partial(func, **dict(zip(para_names, paras)))
kwarg_dict = {}
if len(paras) > 0:
para_names = inspect.getfullargspec(func).args[1:1 + len(paras)]
kwarg_dict.update(dict(zip(para_names, paras)))
return partial(func, **kwarg_dict)
def composeFunction(functions):
if callable(functions):
......
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