Table of Contents

Class PythonTransform

Namespace
Bonsai.Scripting.IronPython
Assembly
Bonsai.Scripting.IronPython.dll

Represents an operator that uses a Python script to transform each element of an observable sequence.

[WorkflowElementCategory(ElementCategory.Transform)]
public class PythonTransform : SingleArgumentExpressionBuilder, IExpressionBuilder, INamedElement
Inheritance
PythonTransform
Implements
Inherited Members
Extension Methods

Constructors

PythonTransform()

Initializes a new instance of the PythonTransform class.

public PythonTransform()

Properties

Description

Gets or sets a description for the python transform.

[Externalizable(false)]
public string Description { get; set; }

Property Value

string

Name

Gets or sets the name of the python transform.

[Externalizable(false)]
public string Name { get; set; }

Property Value

string

Script

Gets or sets the script that determines the operation of the transform.

public string Script { get; set; }

Property Value

string

Methods

Build(IEnumerable<Expression>)

Constructs an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.

public override Expression Build(IEnumerable<Expression> arguments)

Parameters

arguments IEnumerable<Expression>

A collection of Expression nodes representing the input arguments.

Returns

Expression

The constructed Expression node.