Please enable JavaScript to view this site.

Knowledge Base

A Python function that passes a list to the Script Workspace of an active Lumerical session opened via the Python interoperability API. This function will translate direction to a cell data type in Lumerical script.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

Supported OS: Windows, Linux

 

Syntax

Description

lumapi.putList(handle, "list_name", M)

When executed in Python, this function will pass a list to a Lumerical session through an active handle. The data will be a cell type in the Lumerical script.

 

Example

The following example shows how data defined in Python can be passed to the Lumerical Script workspace as a cell:

values = [ 'Hello World',         # String data
           1.,                    # Double data
           [ 'greeting', 2. ],    # List/Cell data
           { 'pi' : 3.14 } ]      # Struct data
la.putList(self.h, "A", values)

 

See Also

lumapi.putDouble, lumapi.putMatrix, lumapi.putString, lumapi.putStruct, cell

Copyright Lumerical Inc. | Privacy | Site Map