Skip to main content

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.

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)
    capacities: np.ndarray = np.linspace(1e2, 1e3, 3)
    ecData.createReport(capacities)

The example compares the effect on the community of batteries of 3 different capacities (100kw/h, 550kh/h and 1000kw/h). 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ec_data_analysis-0.2.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ec_data_analysis-0.2.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file ec_data_analysis-0.2.0.tar.gz.

File metadata

  • Download URL: ec_data_analysis-0.2.0.tar.gz
  • Upload date:
  • Size: 10.0 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

Hashes for ec_data_analysis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 06c87d8ecdb519b6eeb2c5fb3641f8e02f8e659f6fb274f9e86c3d7401c8eec5
MD5 322ae4325e5d8c20c865d135e8a0c98d
BLAKE2b-256 31fe6838ba70826173c494f531603d8953ea5b2e0675e9d045db8efcd72aa2e0

See more details on using hashes here.

File details

Details for the file ec_data_analysis-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ec_data_analysis-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.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

Hashes for ec_data_analysis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64dbc3e45f29de803e7e19b6fc247751e4f8c173e1ef06c6e5f2dc48555b16ff
MD5 51122c827748f04843b74c25feb1d4e7
BLAKE2b-256 bbb0a3456c8656b013472fb31747bd428b5d0276dedb3ce45495f936d1847803

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page