Skip to content

Commit

Permalink
Use get_color_value in basic.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 8, 2024
1 parent c6acf1f commit 3086131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
)
from galaxy.model.dataset_collections import builder
from galaxy.schema.fetch_data import FilesPayload
from galaxy.tool_util.parameters.factory import get_color_value
from galaxy.tool_util.parser import get_input_source as ensure_input_source
from galaxy.tool_util.parser.util import (
boolean_is_checked,
Expand Down Expand Up @@ -848,7 +849,7 @@ class ColorToolParameter(ToolParameter):
def __init__(self, tool, input_source):
input_source = ensure_input_source(input_source)
super().__init__(tool, input_source)
self.value = input_source.get("value", "#000000")
self.value = get_color_value(input_source)
self.rgb = input_source.get_bool("rgb", False)

def get_initial_value(self, trans, other_values):
Expand Down

0 comments on commit 3086131

Please sign in to comment.