Skip to content

Commit

Permalink
Merge pull request #18198 from gagayuan/dynamics_options_add_LibraryD…
Browse files Browse the repository at this point in the history
…ataset

Dynamics options add library dataset
  • Loading branch information
mvdbeek authored Nov 12, 2024
2 parents 598c3b8 + 79470fe commit 504b559
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/tools/parameters/dynamic_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
DatasetCollectionElement,
HistoryDatasetAssociation,
HistoryDatasetCollectionAssociation,
LibraryDatasetDatasetAssociation,
MetadataFile,
User,
)
Expand Down Expand Up @@ -966,6 +967,7 @@ def _get_ref_data(other_values, ref_name):
(
DatasetFilenameWrapper,
HistoryDatasetAssociation,
LibraryDatasetDatasetAssociation,
DatasetCollectionElement,
DatasetListWrapper,
HistoryDatasetCollectionAssociation,
Expand All @@ -977,7 +979,7 @@ def _get_ref_data(other_values, ref_name):
raise ValueError
if isinstance(ref, DatasetCollectionElement) and ref.hda:
ref = ref.hda
if isinstance(ref, (DatasetFilenameWrapper, HistoryDatasetAssociation)):
if isinstance(ref, (DatasetFilenameWrapper, HistoryDatasetAssociation, LibraryDatasetDatasetAssociation)):
ref = [ref]
elif isinstance(ref, HistoryDatasetCollectionAssociation):
ref = ref.to_hda_representative(multiple=True)
Expand Down

0 comments on commit 504b559

Please sign in to comment.