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

Function collect_debug_sections

deeplabcut/core/debug/debug_logger.py:521–595  ·  view source on GitHub ↗
(
    *,
    libraries: Iterable[LibrarySpec | str] | None = None,
    executables: Iterable[ExecutableSpec | str] | None = None,
    include_module_paths: bool = False,
    include_executable_paths: bool = True,
)

Source from the content-addressed store, hash-verified

519
520
521def collect_debug_sections(
522 *,
523 libraries: Iterable[LibrarySpec | str] | None = None,
524 executables: Iterable[ExecutableSpec | str] | None = None,
525 include_module_paths: bool = False,
526 include_executable_paths: bool = True,
527) -> list[DebugSection]:
528 sections: list[DebugSection] = []
529
530 # Always include the runtime section first
531 sections.append(
532 DebugSection(
533 title="Runtime",
534 items=collect_runtime_summary(),
535 )
536 )
537
538 # Default grouped report using your built-in constants
539 if libraries is None:
540 sections.append(
541 DebugSection(
542 title="DeepLabCut core libraries",
543 items=collect_version_summary(
544 libraries=DLC_CORE_LIBS,
545 include_module_paths=include_module_paths,
546 ),
547 )
548 )
549
550 sections.append(
551 DebugSection(
552 title="GUI libraries",
553 items=collect_version_summary(
554 libraries=DLC_GUI_LIBS,
555 include_module_paths=include_module_paths,
556 ),
557 )
558 )
559
560 tf_items = collect_version_summary(
561 libraries=DLC_TF_LIBS,
562 include_module_paths=include_module_paths,
563 )
564 if tf_items and _section_has_useful_values(tf_items):
565 sections.append(
566 DebugSection(
567 title="TensorFlow libraries",
568 items=tf_items,
569 )
570 )
571 else:
572 # Custom input
573 sections.append(
574 DebugSection(
575 title="Libraries",
576 items=collect_version_summary(
577 libraries=libraries,
578 include_module_paths=include_module_paths,

Callers 1

build_debug_reportFunction · 0.85

Calls 5

DebugSectionClass · 0.85
collect_runtime_summaryFunction · 0.85
collect_version_summaryFunction · 0.85

Tested by

no test coverage detected