tecio.VariableList

tecio.VariableList#

class tecio.VariableList(variables)#

Bases: Generic[_VarT]

Read-only sequence of variables with positional and named access.

Drop-in for the list previously returned by ReadZone.variables: iteration, len(), and integer indexing are unchanged. A string key resolves a variable by its exact, case-sensitive name.

Subscripting returns the variable object; use its .values (or the zone’s get_array) to obtain the underlying array.

Parameters:

variables – Ordered list of variable elements (each exposing .name).

Note

If two variables share a name (rare), the first occurrence wins for name-based lookup.

Methods

names()

Return the variable names in dataset order.

names()[source]#

Return the variable names in dataset order.