monai.deploy.operators.DICOMSeriesSelectorOperator

class monai.deploy.operators.DICOMSeriesSelectorOperator(*args, **kwargs)[source]

Bases: monai.deploy.core.operator.Operator

This operator filters out a list of DICOM Series given some selection rules.

This is a placeholder class. It has not been implemented yet. Currently this operator always selects the first series in the List. When implemented it will honor the selection rules expressed in a dictionary format.

Constructor of the base operator.

It creates an instance of Data Store which holds on to all inputs and outputs relavant for this operator.

Parameters
  • args – Arguments.

  • kwargs – Keyword arguments.

Methods

__init__(*args, **kwargs)

Constructor of the base operator.

add_input(label, data_type, storage_type)

add_output(label, data_type, storage_type)

compute(input, output, context)

Performs computation for this operator.

ensure_valid()

Ensures that the operator is valid.

filter(selection_rules, dicom_study_list)

post_compute()

This method gets executed after “compute()” of an operator is called.

pre_compute()

This method gets executed before compute() of an operator is called.

Attributes

env

Gives access to the environment.

name

Returns the name of this operator.

op_info

Retrieves the operator info.

uid

Gives access to the UID of the operator.

__init__(*args, **kwargs)

Constructor of the base operator.

It creates an instance of Data Store which holds on to all inputs and outputs relavant for this operator.

Parameters
  • args – Arguments.

  • kwargs – Keyword arguments.

compute(input, output, context)[source]

Performs computation for this operator.

ensure_valid()

Ensures that the operator is valid.

This method needs to be executed by add_operator() and add_flow() methods in the compose() method of the application. This sets default values for the operator in the graph if necessary. (e.g., set default value for the operator’s input port, set default value for the operator’s output port, etc.)

property env: monai.deploy.core.operator.OperatorEnv

Gives access to the environment.

This sets a default value for the operator’s environment if not set.

Return type

OperatorEnv

Returns

An instance of OperatorEnv.

property name: str

Returns the name of this operator.

Return type

str

property op_info: monai.deploy.core.operator_info.OperatorInfo

Retrieves the operator info.

Args:

Return type

OperatorInfo

Returns

An instance of OperatorInfo.

post_compute()

This method gets executed after “compute()” of an operator is called.

This is a post-execution step before the operator is done doing its main action. This needs to be overridden by a base class for any meaningful action.

pre_compute()

This method gets executed before compute() of an operator is called.

This is a preperatory step before the operator executes its main job. This needs to be overridden by a base class for any meaningful action.

property uid: uuid.UUID

Gives access to the UID of the operator.

Return type

UUID

Returns

UID of the operator.