src.dackar.RCA.pm_compliance.config

Configuration for the PM Compliance Verification module.

Classes

PMComplianceConfig

Tuning parameters for schedule vs. execution analysis and reporting.

Module Contents

class src.dackar.RCA.pm_compliance.config.PMComplianceConfig[source]

Tuning parameters for schedule vs. execution analysis and reporting.

look_back_window_days: int = 730[source]

Window [event - N days, event] for CMMS PM / WO history (export / API phase).

effectiveness_lookback_cycles: int = 3[source]

How many past PM cycles to read for as-found / degradation trend.

pm_frequency_concern_ratio: float = 0.5[source]

Flag PM frequency concern when pm_interval > ratio * mean_failure_interval (advisory).

data_dir: pathlib.Path | None = None[source]

Path to the DACKAR data directory containing health-status keyword CSVs.

When set, analyze_degradation and compute_pm_found_defect_rate use the curated vocabulary files (health_status_keywords_negative/positive.csv). When None, the original hardcoded stem fallback is used.