subset_keys#

ParamDictND.subset_keys(*pattern)[source]#

Get a subset of the N-dim tuple keys of the Dict with a wildcard pattern.

Parameters:
*patternAny

The pattern requires one value for each dimension of the N-dim tuple key. The single-character string '*' (asterisk) can be used as a wildcard to represent all possible values for a dimension.

Returns:
list
Raises:
LookupError

If the Dict is empty.

TypeError

If the pattern includes non-scalar(s).

ValueError

If the pattern is not the same as the length of N-dim tuple keys.

ValueError

If the pattern has no wildcard or all wildcards.