Skip to content

Commit

Permalink
Fixes pipeline link argument issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFrax committed Jul 12, 2019
1 parent 4607963 commit dcaf5ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions soweego/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ def _linker(target: str, upload: bool):
for target_type in target_database.supported_entities_for_target(target):
if not target_type:
continue
args = [target, target_type, '--upload'] if upload else [target,
target_type]
arguments = [target, target_type, '--upload'] if upload else [target,
target_type]

_invoke_no_exit(baseline.extract_cli, args)
_invoke_no_exit(baseline.extract_cli, arguments)
_invoke_no_exit(evaluate.cli, ['slp', target, target_type])
_invoke_no_exit(train.cli, ['slp', target, target_type])
_invoke_no_exit(link.cli, ['slp'].extend(args))
arg_linker = ['slp']
arg_linker.extend(arguments)
_invoke_no_exit(link.cli, arg_linker)


def _validator(target: str, upload: bool):
Expand Down

0 comments on commit dcaf5ea

Please sign in to comment.