Skip to main content

Python Library used for different python modules for the analysis and optimization of energy systems, buildings and indoor climate

Project description

E.ON EBC RWTH Aachen University

DOI pylint documentation coverage License build

ebcpy

This PYthon package provides generic functions and classes commonly used for the analysis and optimization of energy systems, buildings and indoor climate (EBC).

Key features are:

  • SimulationAPI's
  • Optimization wrapper
  • Useful loading of time series data and time series data accessor for DataFrames
  • Pre-/Postprocessing
  • Modelica utilities

It was developed together with AixCaliBuHA, a framework for an automated calibration of dynamic building and HVAC models. During this development, we found several interfaces relevant to further research. We thus decoupled these interfaces into ebcpy and used the framework, for instance in the design optimization of heat pump systems (link).

Installation

To install, simply run

pip install ebcpy

In order to use all optional dependencies (e.g. pymoo optimization), install via:

pip install ebcpy[full]

If you encounter an error with the installation of scikit-learn, first install scikit-learn separatly and then install ebcpy:

pip install scikit-learn
pip install ebcpy

If this still does not work, we refer to the troubleshooting section of scikit-learn: https://scikit-learn.org/stable/install.html#troubleshooting. Also check issue 23 for updates.

In order to help development, install it as an egg:

git clone https://github.com/RWTH-EBC/ebcpy
pip install -e ebcpy

How to get started?

We recommend running our jupyter-notebook to be guided through a helpful tutorial.
For this, run the following code:

# If jupyter is not already installed:
pip install jupyter
# Go into your ebcpy-folder (cd \path_to_\ebcpy) or change the path to tutorial.ipynb and run:
jupyter notebook tutorial\tutorial.ipynb

Or, clone this repo and look at the examples\README.md file. Here you will find several examples to execute.

How to cite ebcpy

Please use the following metadata to cite ebcpy in your research:

@article{Wuellhorst2022,
  doi = {10.21105/joss.03861},
  url = {https://doi.org/10.21105/joss.03861},
  year = {2022},
  publisher = {The Open Journal},
  volume = {7},
  number = {72},
  pages = {3861},
  author = {Fabian Wüllhorst and Thomas Storek and Philipp Mehrfeld and Dirk Müller},
  title = {AixCaliBuHA: Automated calibration of building and HVAC systems},
  journal = {Journal of Open Source Software}
}

Time series data

Note that we use steamline time series data based on a pd.DataFrame using a common function and the accessor tsd. The aim is to make tasks like loading different filetypes or common functions more convenient, while conserving the powerful tools of the DataFrame. Just a example intro here:

>>> from ebcpy.data_types import load_time_series_data
>>> df = load_time_series_data(r"path_to_a_supported_file")

# From Datetime to float
df.tsd.to_float_index()
# From float to datetime
df.tsd.to_datetime_index()
# To clean your data and create a common frequency:
df.tsd.clean_and_space_equally(desired_freq="1s")

Documentation

Visit our official Documentation.

Problems or questions?

Please raise an issue here.

For other inquires, please contact ebc-tools@eonerc.rwth-aachen.de.

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

ebcpy-0.7.0.tar.gz (86.3 kB view details)

Uploaded Source

Built Distribution

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

ebcpy-0.7.0-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

Details for the file ebcpy-0.7.0.tar.gz.

File metadata

  • Download URL: ebcpy-0.7.0.tar.gz
  • Upload date:
  • Size: 86.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for ebcpy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5494957f74aad5665478bc0d6ab895c7c3919cf67e0b4dc5f8c6f30deb3a9320
MD5 9a65a0ef63a7a4e847c72de3512490d9
BLAKE2b-256 81c2d724edeb6a3ded5cde6bb9818a932787ad3671809ccc239663a1774bbed1

See more details on using hashes here.

File details

Details for the file ebcpy-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: ebcpy-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 76.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for ebcpy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 761dfd7ba8e23fbffacc0261e097cf748fc077450b35149f74584c6e0a93fccb
MD5 22a6f5d542ee0662e395c56496d250e1
BLAKE2b-256 f40ff364517cc5364c3cc483192cc6b97a9b9223eb667aabc8273d01f48f4d03

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