Table of Contents

Class PythonSource

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

Represents an operator that uses a Python script to generate an observable sequence of values.

[WorkflowElementCategory(ElementCategory.Source)]
public class PythonSource : ZeroArgumentExpressionBuilder, IExpressionBuilder, INamedElement
Inheritance
PythonSource
Implements
Inherited Members
Extension Methods

Constructors

PythonSource()

Initializes a new instance of the PythonSource class.

public PythonSource()

Properties

Description

Gets or sets a description for the python source.

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

Property Value

string

Name

Gets or sets the name of the python source.

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

Property Value

string

Script

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

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.