Collections
Collection classes are not intended to be instantiated directly and are used as accessors to the individual elements of a collection returned in various classes.
- class keysight.ads.de._list_like.IndexedMutableCollectionAbc
An abstract base class (ABC) for a list-like collection of elements.
This is used to support cases where the elements are controlled by the owner. Assigning elements will assign the new objects to the owner. Inserting or appending new elements will add the new objects to the owner. Deleting an element from the collection will remove it from the owner.
- abstract __delitem__(index: int) None
- abstract __getitem__(index)
- abstract __iadd__(values: T | Sequence[T]) IndexedMutableCollectionAbc
- __iter__()
- abstract __len__()
- abstract __setitem__(index: int, value: T) None
- abstract __setitem__(index: slice, value: Sequence[T]) None
- abstract append(values: T | Sequence[T]) None
- count(value) integer -- return number of occurrences of value
- index(value[, start[, stop]]) integer -- return first index of value.
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
- abstract insert(index: int, values: T | Sequence[T]) None
- abstract pop(index: int = -1) T
- abstract remove(index: int) None
- class keysight.ads.de._list_like.NamedMutableCollectionAbc
An abstract base class (ABC) for a mutable collection of named wrapper objects.
This is used to support cases where the elements are controlled by the owner.
- abstract __delitem__(key: str) None
- abstract __getitem__(key: str) T
- __init__(*args, **kwargs)
- abstract __iter__() Iterator[T]
- abstract __len__() int
- abstract add(value: T) None
- abstract find(key: str) T | None
Find an item by name. Returns None if not found.
- abstract get(key: str) T | None
Find an item by name. Returns None if not found.
- abstract names() list[str]
Return the names in this collection.
- abstract remove(value: T) None