(
idx: int,
parameterset: ParameterSet,
argnames: Iterable[str],
idfn: Optional[Callable[[Any], Optional[object]]],
ids: Optional[List[Union[None, str]]],
nodeid: Optional[str],
config: Optional[Config],
)
| 1404 | |
| 1405 | |
| 1406 | def _idvalset( |
| 1407 | idx: int, |
| 1408 | parameterset: ParameterSet, |
| 1409 | argnames: Iterable[str], |
| 1410 | idfn: Optional[Callable[[Any], Optional[object]]], |
| 1411 | ids: Optional[List[Union[None, str]]], |
| 1412 | nodeid: Optional[str], |
| 1413 | config: Optional[Config], |
| 1414 | ) -> str: |
| 1415 | if parameterset.id is not None: |
| 1416 | return parameterset.id |
| 1417 | id = None if ids is None or idx >= len(ids) else ids[idx] |
| 1418 | if id is None: |
| 1419 | this_id = [ |
| 1420 | _idval(val, argname, idx, idfn, nodeid=nodeid, config=config) |
| 1421 | for val, argname in zip(parameterset.values, argnames) |
| 1422 | ] |
| 1423 | return "-".join(this_id) |
| 1424 | else: |
| 1425 | return _ascii_escaped_by_config(id, config) |
| 1426 | |
| 1427 | |
| 1428 | def idmaker( |
no test coverage detected