tecio.VariableList#
- class tecio.VariableList(variables)#
Bases:
Generic[_VarT]Read-only sequence of variables with positional and named access.
Drop-in for the
listpreviously returned byReadZone.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’sget_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.