Skip to content

Commit

Permalink
Fixed OPM export for workflows using Controlflow Assistant
Browse files Browse the repository at this point in the history
OPM assumes some Map inputs are functions, but CF uses connections.
In this case we cannot compute the provenance for the Map.
  • Loading branch information
rexissimus committed Jun 30, 2015
1 parent 57283b1 commit 9b58ba9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vistrails/db/services/opm.py
Expand Up @@ -271,6 +271,10 @@ def process_map(module, found_input_ports, found_output_ports):
# need to have process that extracts artifacts for each iteration
input_list_artifact = found_input_ports['InputList']
result_artifact = found_output_ports.get('Result', None)
# if InputPort or OutputPort is a Connection we cannot do anything
if (found_input_ports['InputPort'].vtType == DBConnection.vtType or
found_input_ports['OutputPort'].vtType == DBConnection.vtType):
return
input_port_list = \
literal_eval(found_input_ports['InputPort'].db_parameters[0].db_val)
output_port = \
Expand Down

0 comments on commit 9b58ba9

Please sign in to comment.