analyzer
core.analyzer
Performance and data analysis module.
Classes
| Name | Description |
|---|---|
| PerformanceAnalyzer | TEP processing performance analyzer. |
PerformanceAnalyzer
core.analyzer.PerformanceAnalyzer(self, output_dir, console=None)TEP processing performance analyzer.
Methods
| Name | Description |
|---|---|
| compare_files | Compare current data with previous version. |
| generate_report | Generate a formatted performance report. |
| profile_data | Profile data and print summary. |
compare_files
core.analyzer.PerformanceAnalyzer.compare_files(
current_df,
name_pattern,
output_dir,
)Compare current data with previous version.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| current_df | pd.DataFrame | Current DataFrame | required |
| name_pattern | str | Base file name pattern to search for | required |
| output_dir | Path | Directory to search for files | required |
generate_report
core.analyzer.PerformanceAnalyzer.generate_report(metrics)Generate a formatted performance report.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| metrics | Dict | Dictionary containing performance metrics | required |
profile_data
core.analyzer.PerformanceAnalyzer.profile_data(df)Profile data and print summary.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| df | pd.DataFrame | DataFrame to profile | required |