- create_imported_operator(owner, name, path, visibility=VK.PUBLIC, symbol_file=None, state=False)#
Create an imported operator.
The operator has a name.
- Parameters:
- owner
suite.Package
Owner of the operator, which is either the model itself or a package.
- name
str
Name of the operator.
- file
Path
File defining the imported operator.
- path
Path
Path of the file to store the operator. This parameter is optional if the packageβs owner is a package. When the path is
None
and owner is the model, the operator isstored in the modelβs default file.- visibility
VK
, default:Public
Accessibility of the operator.
- symbol_file
Path
, default:None
Path of the file defining the symbol of the operator.
- statebool, default:
False
Whether the operator is a node.
- owner
- Returns:
suite.Operator