Skip to content

Commit 2c91020

Browse files
authored
Simulation evaluation (#25)
* remove check-added-large-files hook from pre-commit configuration * Sample file for simulation eval * Basic framework for simulation evaluation. * Add self-consumption metrics and cost calculations to energy evaluation - Introduced new constants for self-consumed electricity, costs, and earnings in `const.py`. - Updated the `evaluate` method in `main.py` to calculate electricity consumed, self-consumed, costs of delivered electricity, earnings from exported electricity, and net costs. - Added calculations for self-consumption ratios in the evaluation results. - Removed the obsolete Jupyter notebook `simeval.ipynb`. * Enhance energy simulation evaluation and modeling - Added methods to retrieve the first and last timestamps in TimeSeriesBase. - Implemented a new function `apply_simulation` to apply simulation results to input data in the PV simulation module. - Updated the PVSimulator class to include a method for converting simulation results to a DataFrame. - Enhanced the evaluation module with a new function `compare_results` to compare two evaluation results and return differences. - Modified the `evaluate` method to handle missing columns for electricity delivered and exported. - Updated imports in various modules to include new functions and classes as needed. - Adjusted execution counts in the demo notebook to reflect the new evaluation and simulation processes. * Add PVSimulationSummary class and update simulation functions - Introduced PVSimulationSummary class to encapsulate simulation results, ex-ante, ex-post data, and comparisons. - Implemented from_simulation class method for creating a summary from simulation data. - Updated apply_simulation function to use constants for electricity produced, delivered, and exported. - Enhanced input validation and data handling within the simulation functions. * Refactor simulation classes and add full simulation analysis module * Making abstractions of simulations * Move abstract definitions to separate module * Update notebooks * Output annotations * improved annotations * Refactor frequency handling in simulation models and update type annotations * Enhance QuickPVSystemModel validation and propagate settings to arrays --------- Co-authored-by: Jan Pecinovsky <=>
1 parent fe45af3 commit 2c91020

22 files changed

Lines changed: 564199 additions & 36 deletions

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"visualstudioexptteam.vscodeintellicode",
1818
"esbenp.prettier-vscode",
1919
"GitHub.vscode-pull-request-github",
20-
"mhutchie.git-graph",
21-
"ms-toolsai.jupyter"
20+
"mhutchie.git-graph"
2221
],
2322
"settings": {
2423
"python.pythonPath": "/usr/local/bin/python",

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repos:
2525
- id: check-yaml
2626
- id: end-of-file-fixer
2727
- id: trailing-whitespace
28-
- id: check-added-large-files
2928

3029
- repo: https://github.com/astral-sh/uv-pre-commit
3130
# uv version.

0 commit comments

Comments
 (0)