MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / _normalize_executable_specs

Function _normalize_executable_specs

deeplabcut/core/debug/debug_logger.py:420–432  ·  view source on GitHub ↗
(
    executables: Iterable[ExecutableSpec | str] | None,
)

Source from the content-addressed store, hash-verified

418
419
420def _normalize_executable_specs(
421 executables: Iterable[ExecutableSpec | str] | None,
422) -> tuple[ExecutableSpec, ...]:
423 if executables is None:
424 return DEFAULT_EXECUTABLE_SPECS
425
426 normalized: list[ExecutableSpec] = []
427 for item in executables:
428 if isinstance(item, ExecutableSpec):
429 normalized.append(item)
430 else:
431 normalized.append(ExecutableSpec(str(item)))
432 return tuple(normalized)
433
434
435def collect_executable_summary(

Callers 1

Calls 1

ExecutableSpecClass · 0.85

Tested by

no test coverage detected