Skip to content

Commit

Permalink
CTX-4333: Updated documentation for submitOutput and submitOutputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuk Manojlovic committed Oct 27, 2023
1 parent 632b7c9 commit 8183157
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions coretex/entities/task_run/task_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,18 @@ def submitOutput(self, parameterName: str, value: Any) -> None:
value that will be sent (id of the object will be sent
in case Coretex objects like CustomDataset, Model etc. is submited)
Raises
------
NetworkRequestError -> if the request failed
Example
-------
>>> from coretex import TaskRun
\b
>>> result = ExecutingTaskRun.current().submitOutputParameter(
>>> ExecutingTaskRun.current().submitOutputParameter(
parameterName = "outputDataset"
value = outputDataset
)
>>> print(result)
True
"""

self.submitOutputs({parameterName: value})
Expand Down Expand Up @@ -386,8 +388,6 @@ def submitOutputs(self, outputs: Dict[str, Any]) -> None:
"outputDataset": outputDataset,
"numbers": 123
})
>>> print(result)
True
"""

outputParameters: List[Dict[str, Any]] = []
Expand Down

0 comments on commit 8183157

Please sign in to comment.