commit/galaxy-central: dannon: Patch from Jim Johnson enhancing format="input" handling in workflows. Fixes bitbucket issue 582
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/fde1780c27a2/ changeset: fde1780c27a2 user: dannon date: 2011-06-16 17:26:07 summary: Patch from Jim Johnson enhancing format="input" handling in workflows. Fixes bitbucket issue 582 affected #: 1 file (743 bytes) --- a/lib/galaxy/workflow/modules.py Thu Jun 16 10:54:29 2011 -0400 +++ b/lib/galaxy/workflow/modules.py Thu Jun 16 11:26:07 2011 -0400 @@ -247,8 +247,20 @@ return data_inputs def get_data_outputs( self ): data_outputs = [] + data_inputs = None for name, tool_output in self.tool.outputs.iteritems(): - formats = [ tool_output.format ] + if tool_output.format_source != None: + formats = [ 'input' ] # default to special name "input" which remove restrictions on connections + if data_inputs == None: + data_inputs = self.get_data_inputs() + # find the input parameter referenced by format_source + for di in data_inputs: + # input names come prefixed with conditional and repeat names separated by '|' + # remove prefixes when comparing with format_source + if di['name'] != None and di['name'].split('|')[-1] == tool_output.format_source: + formats = di['extensions'] + else: + formats = [ tool_output.format ] for change_elem in tool_output.change_format: for when_elem in change_elem.findall( 'when' ): format = when_elem.get( 'format', None ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket