Skip to content

Commit

Permalink
Merge pull request #2345 from nsoranzo/release_16.04_fix_for_2029
Browse files Browse the repository at this point in the history
[16.04] Do not pollute param_dict with a non JSONifiable dict
  • Loading branch information
blankenberg committed May 12, 2016
2 parents 0138136 + 8255e72 commit e28d305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tools/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def wrap_input( input_values, input ):
real_path = dataset.file_name
if real_path in input_dataset_paths:
wrapper_kwds[ "dataset_path" ] = input_dataset_paths[ real_path ]
identifier_key = param_dict[ "identifier_key" ].get( dataset, None )
identifier_key = identifier_key_dict.get(dataset, None)
if identifier_key:
element_identifier = param_dict.get(identifier_key, None)
if element_identifier:
Expand Down Expand Up @@ -256,7 +256,7 @@ def wrap_input( input_values, input ):
# tools where the inputs don't even get passed through. These
# tools (e.g. UCSC) should really be handled in a special way.
if self.tool.check_values:
param_dict[ "identifier_key" ] = dict((v, "%s|__identifier__" % k) for k, v in input_datasets.iteritems()) # allows lookup of identifier through HDA.
identifier_key_dict = dict((v, "%s|__identifier__" % k) for k, v in input_datasets.iteritems()) # allows lookup of identifier through HDA.
self.__walk_inputs( self.tool.inputs, param_dict, wrap_input )

def __populate_input_dataset_wrappers(self, param_dict, input_datasets, input_dataset_paths):
Expand Down

0 comments on commit e28d305

Please sign in to comment.