Python package to work with Energyplus input and output
opyplus is a package allowing to work with EnergyPlus in Python.
More specifically, it allows to:
- Parse, query and modify idf files efficiently, with a number of checks ensuring that your idf file remains correct throughout your work
- Parse and create epw files
- Launch simulations on EnergyPlus
- Parse EnergyPlus output files
To install opyplus, run:
pip install opyplus or
conda install -c conda-forge opyplus
Documentation is available at https://opyplus.readthedocs.io
opyplus is designed to work with python 3.6 and newer.
It is currently automatically tested against the following python versions:
opyplus is designed to work with any EnergyPlus version. Currently, it is automatically tested against the following versions (listed in TESTED_EPLUS_VERSIONS : oplus.tests.util):
Each test is therefore run multiple times : once per tested version. To automatically run a test on all versions, use eplus_tester function (oplus.tests.util).
opyplus is designed to work with any Operating System. It is automatically tested against the latest versions of the following OS:
- Microsoft Windows
Install pytest and the packages listed in requirements.txt using pip or conda.
Install EnergyPlus v9.0.1.
At the root of the repository, run pytest:
python -m pytest.
We use flake8 for style enforcement, including docstrings.
To run it, install flake8 and flake8-docstrings using pip or conda.
At the root of the repository, run flake8:
python -m flake8 opyplus/
To build the configuration:
install the requirements in docs/requirements.txt
make html in opyplus docs directory.
To ensure the examples in the documentation remain up to date, they are tested using the doctest extension: https://www.sphinx-doc.org/en/master/usage/extensions/doctest.html
make doctest in opyplus docs directory to test the documentation.
When adding code samples to the documentation, please use when possible the doctest extension, as it helps ensure your
samples will be kept up to date: use
.. testcode:: and
.. testoutput:: rather than
.. code-block:: python.
- Developer XX works on his branch (XX-...). When finished, he completes the RELEASE.md without writing the version number (he completes under ## next). He then creates a pull request into master.
- Once the pull request has been accepted by an administrator (tests must pass, among other things), the branch is merged on master.
- When administrator wants to create a version, he completes RELEASE.md with version number, sets it version.py, commits and creates a tag (vX.X.X). He then pushes. The tests should succeed because all pull requests tests have succeeded. A conda and pip build will then automatically be performed by Azure Pipelines.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size opyplus-1.1.3-py3-none-any.whl (6.6 MB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size opyplus-1.1.3.tar.gz (6.4 MB)||File type Source||Python version None||Upload date||Hashes View|