Manages Energy Community Datasets with support for computing optimal energy distribution, visualization and key statistics.
Project description
Wrapper for datasets about Energy Communities providing the ability to immediately extract key stats such as the breakdown of covered energy (self-coverage, trading over market, and discharged from community battery) and automatically generate a report. The market is implicit and computed optimally at each timestep using a max-flow algorithm.
The functionality is provided by the ECDataset class. For its construction, provide it with two 2D Pandas DataFrames production and consumption, where production[i][j] is the production of community member j at timestep i and consumption[i][j] is the consumption of community member j at timestep i. Also, pass the timestep used in the dataset as a fraction/multiple of one hour as a parameter.
Example usage is provided in the main.py file:
def main() -> None:
data: pd.DataFrame = pd.read_excel("data/EC_EV_dataset.xlsx", sheet_name=None)
production: pd.DataFrame = getSheet("PV", data)
consumption: pd.DataFrame = getSheet("Load", data)
ecData: ECDataset = ECDataset(production, consumption, 0.25)
ecData.createReport()
The example report generated by this is in out/report.pdf based on the example dataset data/EC_EV_dataset.xlsx.
The code is annotated with type hints, and the provided Makefile typechecks with
Make typecheck
Run
Make all
to format the python files, typecheck and run main.py, or
Make run
to simply run main.py.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ec_data_analysis-0.5.0.tar.gz.
File metadata
- Download URL: ec_data_analysis-0.5.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.10-arch1-1-surface
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72c93f927b52589e79414be0a6a958d1fb22feb359769c518a9555c9d4b7c25
|
|
| MD5 |
98beee77c326c1ab7f8717c974ab568e
|
|
| BLAKE2b-256 |
d6582578ed8eeb8654302bf0c1e43ab25a0acf9a2292b2a4af0b36c13a6dd553
|
File details
Details for the file ec_data_analysis-0.5.0-py3-none-any.whl.
File metadata
- Download URL: ec_data_analysis-0.5.0-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.10-arch1-1-surface
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d57b03fe201764eba32897105ea02415229a224e3f306595d860140dc38e08
|
|
| MD5 |
e06bb82391901de527ae43ba81247ec0
|
|
| BLAKE2b-256 |
d539ab61ab791f71c60294715f3a58f518cbbd97d4a06fdfd88857b55a3c4603
|