Skip to content

Commit

Permalink
Consider mapping-over when picking collection_type for dynamically di…
Browse files Browse the repository at this point in the history
…scovered collections
  • Loading branch information
mvdbeek committed Jun 11, 2018
1 parent fd16302 commit 258ccb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/galaxy/tools/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,11 @@ def create_collection(self, output, name, collection_type=None, **element_kwds):
raise Exception("Could not determine collection type to create.")
if collection_type_source not in input_collections:
raise Exception("Could not find collection type source with name [%s]." % collection_type_source)

collection_type = input_collections[collection_type_source].collection.collection_type
collection_type_description = self.tool.inputs[collection_type_source]._history_query(self.trans).can_map_over(input_collections[collection_type_source])
if collection_type_description:
collection_type = collection_type_description.collection_type
else:
collection_type = input_collections[collection_type_source].collection.collection_type

if "elements" in element_kwds:
def check_elements(elements):
Expand Down

0 comments on commit 258ccb8

Please sign in to comment.