mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
pass edam to EdamToolPanelView directly
This commit is contained in:
@@ -193,7 +193,7 @@ class AbstractToolBox(Dictifiable, ManagesIntegratedToolPanelMixin):
|
||||
|
||||
for edam_view in listify(self.app.config.edam_panel_views):
|
||||
mode = EdamPanelMode[edam_view]
|
||||
tool_panel_views_list.append(EdamToolPanelView(self.app.datatypes_registry, mode=mode))
|
||||
tool_panel_views_list.append(EdamToolPanelView(self.app.datatypes_registry.edam, mode=mode))
|
||||
|
||||
if view_sources is not None:
|
||||
for definition in view_sources.get_definitions():
|
||||
|
||||
@@ -6,7 +6,6 @@ from typing import (
|
||||
Tuple,
|
||||
)
|
||||
|
||||
from galaxy.datatypes.registry import Registry
|
||||
from galaxy.tool_util.edam_util import (
|
||||
ROOT_OPERATION,
|
||||
ROOT_TOPIC,
|
||||
@@ -34,8 +33,8 @@ class EdamPanelMode(str, Enum):
|
||||
|
||||
|
||||
class EdamToolPanelView(ToolPanelView):
|
||||
def __init__(self, datatypes_registry: Registry, mode: EdamPanelMode = EdamPanelMode.merged):
|
||||
self.edam = datatypes_registry.edam
|
||||
def __init__(self, edam: Dict[str, Dict], mode: EdamPanelMode = EdamPanelMode.merged):
|
||||
self.edam = edam
|
||||
self.mode = mode
|
||||
self.include_topics = mode in [EdamPanelMode.merged, EdamPanelMode.topics]
|
||||
self.include_operations = mode in [EdamPanelMode.merged, EdamPanelMode.operations]
|
||||
|
||||
Reference in New Issue
Block a user