Utilities API
Custom exception hierarchy for pgsi_analyzer.
- exception pgsi_analyzer.utils.errors.PGSIAnalyzerError[source]
Bases:
ExceptionBase exception for all pgsi_analyzer errors.
- exception pgsi_analyzer.utils.errors.MeasurementError[source]
Bases:
PGSIAnalyzerErrorRaised for measurement-related failures (energy/time).
- exception pgsi_analyzer.utils.errors.AnalysisError[source]
Bases:
PGSIAnalyzerErrorRaised for analysis/data processing failures.
- exception pgsi_analyzer.utils.errors.PlatformError[source]
Bases:
PGSIAnalyzerErrorRaised when the current platform is unsupported or misconfigured.
- exception pgsi_analyzer.utils.errors.ConfigurationError[source]
Bases:
PGSIAnalyzerErrorRaised for configuration or missing resource issues.
- exception pgsi_analyzer.utils.errors.AuditError[source]
Bases:
PGSIAnalyzerErrorRaised when audit validation fails (e.g. data in unregistered directory/method).
Validation helpers for pgsi_analyzer.
- pgsi_analyzer.utils.validation.validate_file_path(path: Path | str, must_exist: bool = True) Path[source]
Ensure a path is a Path and (optionally) exists.
- pgsi_analyzer.utils.validation.validate_dataframe(df: DataFrame, required_columns: Sequence[str]) None[source]