monai.deploy.core.OutputContext

class monai.deploy.core.OutputContext(execution_context)[source]

Bases: monai.deploy.core.io_context.IOContext

An output context for an operator.

Constructor for IOContext.

Methods

__init__(execution_context)

Constructor for IOContext.

get([label])

Returns the data for the operator.

get_default_label([label])

Get a default label for IO context.

get_group_path([postfix])

Returns the path for the group.

set(value[, label])

Sets the data for the operator.

__init__(execution_context)

Constructor for IOContext.

get(label='')

Returns the data for the operator.

It uses a sub path ({self._io_kind}/{label}) to get the data. The final group path (key) would be:

“/operators/{self._op.uid}/{execution_index}/{self._io_kind}/{label}”

Return type

Any

get_default_label(label='')

Get a default label for IO context.

Return type

str

get_group_path(postfix='')

Returns the path for the group.

The group path returned would be:

“/operators/{self._op.uid}/{execution_index}/{postfix}”

Parameters

postfix (str) – The postfix for the path.

Return type

str

Returns

The path for the group.

set(value, label='')

Sets the data for the operator.

It uses a sub path ({self._io_kind}/{label}) to set the data. The final group path (key) would be:

“/operators/{self._op.uid}/{execution_index}/{self._io_kind}/{label}”