bbartling / open-fdd

Fault Detection Diagnostics (FDD) for HVAC datasets
MIT License
59 stars 14 forks source link
commissioning fault-detection fdd hvac

open-fdd

CI MIT License Black PyPI

Alt text

This is a Python-based Fault Detection and Diagnostics (FDD) tool for running fault equations inspired by ASHRAE and NIST standards for HVAC systems across historical datasets using the Pandas computing library. The tool evaluates various fault conditions and outputs fault flags as boolean columns within typical Pandas DataFrames. These fault flags indicate the presence (True) or absence (False) of specific issues identified by the fault equations. This approach integrates seamlessly into standard data science and computer science workflows, allowing for efficient analysis, visualization, and further processing of fault conditions within familiar data structures like DataFrames.

Getting Setup

This project is now available on PyPI, making it easy to set up with the Python package manager, pip. You can install the package using the following command:

pip install open-fdd

For running Jupyter notebooks, I recommend using Visual Studio Code with the Jupyter notebook extension installed, which offers a seamless experience directly within the editor. Be sure to explore the examples directory for Jupyter notebook tutorials. If you have your own FDD experiences to share, feel free to contribute by creating a notebook (.ipynb). You’re welcome to reach out to me directly, and I can push your example to GitHub on your behalf, which might be a simpler process than submitting a pull request (PR), especially if you're just sharing an example rather than developing open-fdd.

Project goals

The following are key objectives to enhance this project into a fully interactive Fault Detection and Diagnostics (FDD) application.

Completed

In Progress

Upcoming

Future Considerations

Explore additional features and enhancements as the project evolves.

Contribute

If you have suggestions for improving developer best practices or solutions, please feel free to reach out to me directly using my contact information or Git issue/discussion. I primarily work on Windows with multiple versions of Python installed, with Python 3.12.x as my default version. You can download the latest version of Python here:

  1. Adding New Faults and Reports:
    Developers will need to > py -3.12 -m pip install black pytest. When adding new faults and reports, I usually run > py -3.12 -m pip install . in the cloned project directory. I continuously uninstall with > py -3.12 -m pip uninstall open-fdd and reinstall locally until I'm satisfied with the changes.

  2. Testing Fault Logic:
    All fault logic is rigorously tested using pytest. You can run the tests with > py -m pytest.

  3. Formatting with Black:
    To ensure code consistency, I use Black for formatting. Run > py -m black . to format the code and check it with > py -m black --check .

  4. Pushing to GitHub:
    After making changes, and the steps above are successful push them to GitHub in a pull request. The GitHub Actions workflow will automatically run pytest and black to ensure the build is successful.

This project is a community-driven initiative, focusing on the development of free and open-source tools. I believe that Fault Detection and Diagnostics (FDD) should be free and accessible to anyone who wants to try it out, embodying the spirit of open-source philosophy. Additionally, this project aims to serve as an educational resource, empowering individuals to learn about and implement FDD in their own systems. As someone wisely said, "Knowledge should be shared, not hoarded," and this project strives to put that wisdom into practice.

Got any ideas or questions? Submit a Git issue or start a Discussion...

License

【MIT License】

Copyright 2024 Ben Bartling

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.