Skip to content

Commit

Permalink
rename id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Jun 9, 2020
1 parent 22a5b8a commit 5fb086c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cwlkernel/cwlrepository/CWLComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
class WorkflowComponent(ABC):
_id: str

def __init__(self, id: str, component: Optional[Dict]):
self._id: str = id
def __init__(self, workflow_id: str, component: Optional[Dict]):
self._id: str = workflow_id
if component is not None:
if isinstance(component['inputs'], Dict):
component['inputs'] = self._convert_inputs_from_dict_to_list(component['inputs'])
Expand Down Expand Up @@ -55,8 +55,8 @@ def _convert_outputs_from_dict_to_list(cls, outputs: Dict) -> List[Dict]:

class CWLTool(WorkflowComponent):

def __init__(self, id: str, command_line_tool: Dict):
super().__init__(id, command_line_tool)
def __init__(self, workflow_id: str, command_line_tool: Dict):
super().__init__(workflow_id, command_line_tool)
self._command_line_tool = command_line_tool

@property
Expand Down

0 comments on commit 5fb086c

Please sign in to comment.