ModelData.find_idx#
- ModelData.find_idx(keys, values, allow_none=False, default=False)[source]#
Find idx of devices whose values match the given pattern.
- Parameters:
- keysstr, array-like, Sized
A string or an array-like of strings containing the names of parameters for the search criteria
- valuesarray, array of arrays, Sized
Values for the corresponding key to search for. If keys is a str, values should be an array of elements. If keys is a list, values should be an array of arrays, each corresponds to the key.
- allow_nonebool, Sized
Allow key, value to be not found. Used by groups.
- defaultbool
Default idx to return if not found (missing)
- Returns:
- list
indices of devices