GroupBase.idx2model#
- GroupBase.idx2model(idx, allow_none=False)[source]#
Find model name for the given idx.
- Parameters:
- idxfloat, int, str, array-like
idx or idx-es of devices.
- allow_nonebool
If True, return None at the positions where idx is not found.
- Returns:
- If idx is a list, return a list of model instances.
- If idx is a single element, return a model instance.