Skip to content

Commit

Permalink
Update lib/galaxy/tools/parameters/basic.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
hujambo-dunia and nsoranzo authored Jul 18, 2024
1 parent 68cc8c3 commit 68333b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ def get_options(self, trans, other_values):
except Exception:
column_list = self.get_column_list(trans, other_values)
if self.numerical: # If numerical was requested, filter columns based on metadata
if hasattr(dataset, "metadata") and hasattr(dataset.metadata, "column_types") and column_list is not None:
if hasattr(dataset, "metadata") and hasattr(dataset.metadata, "column_types") and dataset.metadata.column_types is not None:
if len(dataset.metadata.column_types) >= len(column_list):
numerics = [i for i, x in enumerate(dataset.metadata.column_types) if x in ["int", "float"]]
column_list = [column_list[i] for i in numerics]
Expand Down

0 comments on commit 68333b0

Please sign in to comment.