Skip to main content

A Python 3 library for evaluating regressions between EnergyPlus builds.

Project description

EnergyPlus Regressions

Documentation Status Run Tests PyPIRelease Flake8 Coverage Status

Overview

This library provides tools for performing regressions between EnergyPlus builds. Developers often propose changes to EnergyPlus for:

  • New feature development
  • Defect repair
  • Refactoring for structure or performance

When a developer proposes these changes, those code changes must be tested prior to accepting them into the main branch. A continuous integration system runs the tests and provides results, but there can be a sometimes lengthy delay waiting on those results, depending on how busy the system is at that time. This set of tools provides a way to run these regressions locally.

Usage

This tool works on all three major platforms: Windows, Mac, and Ubuntu (LTS). GitHub Actions test on multiple platforms, and it is regularly used on all three as well.

To install the tool, simply pip install it into your Python environment (either system or virtual environment) The project page on PyPi is: https://pypi.org/project/energyplus-regressions/.

  • Download using Pip (pip install energyplus-regressions).
  • Once installed into the Python install, there will be a binary available to run: energyplus_regression_runner.

Development

For setting up a development environment to do work on this tool, the steps are pretty minimal:

  • Install Python, if needed
  • Clone this repository (git clone https://github.com/NREL/EnergyPlusRegressionTool)
  • Install dependencies (pip3 install -r requirements.txt)

Documentation

Program documentation, including user guide and typical workflows, are available in the documentation. This documentation is written using RST with Sphinx, and published on ReadTheDocs.

Testing

Exhaustive unit tests have been added to the "underneath the hood" code, like the functions that calculate diffs and run builds. The unit tests are run on Github Actions. The GUI code is not unit tested, but tested routinely on all platforms.

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

energyplus_regressions-2.0.0.tar.gz (99.4 kB view details)

Uploaded Source

Built Distribution

energyplus_regressions-2.0.0-py3-none-any.whl (114.3 kB view details)

Uploaded Python 3

File details

Details for the file energyplus_regressions-2.0.0.tar.gz.

File metadata

File hashes

Hashes for energyplus_regressions-2.0.0.tar.gz
Algorithm Hash digest
SHA256 64e5e90c5d4e1909937db66c536fd2b2f84644ee51f2af52bc9bbef9e582340d
MD5 392d9a1c387eaabaf8bad6638d5165c6
BLAKE2b-256 50f0f6aeb6ab9d4d67ae367bc37b84dfab3b0effa34d1524b4d6034de6bb6533

See more details on using hashes here.

File details

Details for the file energyplus_regressions-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for energyplus_regressions-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6252ee45c1db9417fe27aa52ec4cb01b1ef0110d7b75655a1148ef3cf8184d57
MD5 c08b617f2a95a9dbef73ed7428bafb63
BLAKE2b-256 cc79c6af82ef17e030bbd399e90a30f81240b72b54594b2df33a2b2a89057eb9

See more details on using hashes here.

Supported by

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