packing_defect.run_utils

Small helper(s) to run analyzers consistently from CLIs.

This module centralizes the typical sequence used by the run_* entrypoints so different analyzers behave the same way when invoked as scripts.

Functions

run_analysis(analyzer)

Execute, plot, and persist results for a defect analyzer.

packing_defect.run_utils.run_analysis(analyzer: _RunnableAnalyzer) None[source]

Execute, plot, and persist results for a defect analyzer.

The standard sequence used by CLI entrypoints: 1) run(), 2) plot(), 3) save_results() to results.txt.

Parameters:

analyzer (BaseDefectAnalyzer-like) – Any object exposing run(), plot(), save_results() and a results attribute.