mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #3197 from scholtalbers/workflows-rename-output-minor-update
update rename dataset action to accept . in repeat input parameters
This commit is contained in:
@@ -125,13 +125,16 @@ class RenameDatasetAction(DefaultJobAction):
|
||||
if len(tokens) > 1:
|
||||
input_file_var = tokens[0].strip()
|
||||
|
||||
# Treat . as special symbol (breaks parameter names anyway)
|
||||
# to allow access to repeat elements, for instance first
|
||||
# repeat in cat1 would be something like queries_0.input2.
|
||||
input_file_var = input_file_var.replace(".", "|")
|
||||
|
||||
for i in range(1, len(tokens)):
|
||||
operations.append(tokens[i].strip())
|
||||
|
||||
# Treat . as special symbol (breaks parameter names anyway)
|
||||
# to allow access to repeat elements, for instance first
|
||||
# repeat in cat1 would be something like queries_0.input2.
|
||||
# TODO: update the help text (input_terminals) on the action to
|
||||
# show correct valid inputs.
|
||||
input_file_var = input_file_var.replace(".", "|")
|
||||
|
||||
replacement = ""
|
||||
# Lookp through inputs find one with "to_be_replaced" input
|
||||
# variable name, and get the replacement name
|
||||
|
||||
Reference in New Issue
Block a user