simetrix.VectorData

class simetrix.VectorData

Bases: object

Basic object to access GroupVector data. Vector objects store x or y data for a single division.

Supports iteration, indexing and the len() function.

Examples

Iteration example:

# div in the following line is a Vector object. value is a scalar float or complex
div = vector.x[4]
for value in div:
   print(value)

Indexing example:

# div in the following line is a Vector object. value is a scalar float or complex
div = vector.x[4]
value = div[2]

Alternatively:

# value is a scalar float or complex
value = vector.x[4][2]

Methods

name()

Name of vector.

physicalType()

Physical type of vector.

type()

Data type of vector.

name() str

Name of vector.

physicalType() PhysicalType

Physical type of vector.

type() SimetrixDataType

Data type of vector.