Skip to content

Commit

Permalink
added counting of kwonlyargs
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Mar 30, 2022
1 parent c63b025 commit 226fab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daliuge-engine/dlg/apps/pyfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def run(self):
if ('inputs' in self.parameters and isinstance(self.parameters['inputs'][0], dict)):
logger.debug(f"Using named ports to identify inputs: "+\
f"{self.parameters['inputs']}")
for i in range(min(len(inputs),self.fn_nargs)):
for i in range(min(len(inputs),self.fn_nargs +\
len(self.arguments.kwonlyargs))):
# key for final dict is value in named ports dict
key = list(self.parameters['inputs'][i].values())[0]
# value for final dict is value in inputs dict
Expand Down

0 comments on commit 226fab0

Please sign in to comment.