open-fdd 0.1.7__py3-none-any.whl → 0.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- open_fdd/air_handling_unit/faults/__init__.py +623 -1420
- open_fdd/chiller_plant/__init__.py +0 -0
- open_fdd/chiller_plant/faults/__init__.py +2280 -0
- open_fdd/tests/ahu/test_ahu_fc11.py +22 -30
- open_fdd/tests/ahu/test_ahu_fc12.py +54 -15
- open_fdd/tests/ahu/test_ahu_fc13.py +13 -5
- open_fdd/tests/ahu/test_ahu_fc14.py +9 -0
- open_fdd/tests/ahu/test_ahu_fc15.py +13 -1
- open_fdd/tests/ahu/test_ahu_fc16.py +12 -4
- open_fdd/tests/chiller/__init__.py +0 -0
- open_fdd/tests/chiller/test_chiller_fc1.py +122 -0
- open_fdd/tests/chiller/test_chiller_fc2.py +95 -0
- open_fdd-0.1.8.dist-info/METADATA +136 -0
- {open_fdd-0.1.7.dist-info → open_fdd-0.1.8.dist-info}/RECORD +17 -12
- {open_fdd-0.1.7.dist-info → open_fdd-0.1.8.dist-info}/WHEEL +1 -1
- open_fdd-0.1.7.dist-info/METADATA +0 -95
- {open_fdd-0.1.7.dist-info → open_fdd-0.1.8.dist-info}/LICENSE +0 -0
- {open_fdd-0.1.7.dist-info → open_fdd-0.1.8.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,136 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: open_fdd
|
3
|
+
Version: 0.1.8
|
4
|
+
Summary: A package for fault detection and diagnosis in HVAC systems
|
5
|
+
Home-page: https://bbartling.github.io/open-fdd/
|
6
|
+
Author: Ben Bartling
|
7
|
+
Author-email: ben.bartling@gmail.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.6
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
License-File: LICENSE
|
14
|
+
Requires-Dist: pandas
|
15
|
+
Requires-Dist: matplotlib
|
16
|
+
Requires-Dist: pytest
|
17
|
+
Dynamic: author
|
18
|
+
Dynamic: author-email
|
19
|
+
Dynamic: classifier
|
20
|
+
Dynamic: description
|
21
|
+
Dynamic: description-content-type
|
22
|
+
Dynamic: home-page
|
23
|
+
Dynamic: requires-dist
|
24
|
+
Dynamic: requires-python
|
25
|
+
Dynamic: summary
|
26
|
+
|
27
|
+
# open-fdd
|
28
|
+
|
29
|
+

|
30
|
+

|
31
|
+

|
32
|
+

|
33
|
+
|
34
|
+

|
35
|
+
|
36
|
+
## 🔥 What is open-fdd?
|
37
|
+
**open-fdd** is an **open-source Fault Detection and Diagnostics (FDD) tool** designed for analysts and engineers using local toolsets like Jupyter notebooks. It is not necessarily an IoT tool for **Grafana**, which an MSI (Master Systems Integrator) might use, though it could be adapted for that purpose. Instead, it is tailored for **individual engineers analyzing historical HVAC system data** using the **Pandas computing library**. While it could potentially be integrated with a database, doing so may require additional effort. It leverages **ASHRAE** and **NIST**-inspired fault equations. Built on Python and **Pandas**, this library enables efficient detection of operational issues in HVAC systems with:
|
38
|
+
|
39
|
+
This version improves clarity and flow while keeping it professional and readable. 🚀 Let me know if you want any more refinements!
|
40
|
+
|
41
|
+
✅ **Pre-built fault equations** for detecting HVAC anomalies
|
42
|
+
✅ **Seamless Pandas integration** for time-series analysis
|
43
|
+
✅ **Extensible architecture** for custom fault conditions
|
44
|
+
✅ **Open-source & community-driven** development
|
45
|
+
|
46
|
+
|
47
|
+
📖 **See Online Documentation:**
|
48
|
+
[📚 Open-FDD Docs](https://bbartling.github.io/open-fdd/)
|
49
|
+
|
50
|
+
---
|
51
|
+
|
52
|
+
## 🚀 Getting Started
|
53
|
+
### Installation
|
54
|
+
Install `open-fdd` from PyPI with:
|
55
|
+
```bash
|
56
|
+
pip install open-fdd
|
57
|
+
```
|
58
|
+
|
59
|
+
### Quick Example
|
60
|
+
```python
|
61
|
+
import pandas as pd
|
62
|
+
from open_fdd.air_handling_unit.fault_condition_one import FaultConditionOne
|
63
|
+
|
64
|
+
# Sample data
|
65
|
+
data = {
|
66
|
+
"timestamp": pd.date_range(start="2023-01-01", periods=10, freq="15T"),
|
67
|
+
"supply_air_temp": [54, 55, 56, 57, 58, 59, 60, 61, 62, 63],
|
68
|
+
"return_air_temp": [70, 70, 70, 70, 70, 70, 70, 70, 70, 70],
|
69
|
+
}
|
70
|
+
df = pd.DataFrame(data)
|
71
|
+
|
72
|
+
# Run fault detection
|
73
|
+
fault_checker = FaultConditionOne(df)
|
74
|
+
df_faults = fault_checker.process()
|
75
|
+
print(df_faults)
|
76
|
+
```
|
77
|
+
|
78
|
+
---
|
79
|
+
|
80
|
+
## 📌 Project Goals
|
81
|
+
`open-fdd` aims to provide a full-featured **Fault Detection & Diagnostics (FDD) platform** with:
|
82
|
+
|
83
|
+
### ✅ Completed Features
|
84
|
+
- [x] Air handling unit (AHU) fault conditions & reports (aligned with ASHRAE/NIST)
|
85
|
+
- [x] PyPI distribution for easy installation
|
86
|
+
|
87
|
+
### 🔄 In Progress
|
88
|
+
- [ ] Jupyter notebook tutorials showcasing AHU FDD examples + BRICK metadata integration
|
89
|
+
- [ ] Expansion to **central plant** fault conditions (chillers, boilers, pumps)
|
90
|
+
- [ ] Jupyter notebook tutorials showcasing AHU FDD examples + BRICK metadata integration
|
91
|
+
|
92
|
+
### ⏳ Upcoming
|
93
|
+
- [ ] **Energy Efficiency** fault detection & reporting
|
94
|
+
- [ ] **Metering** fault analytics & data modeling
|
95
|
+
- [ ] **SQL Integration** for storing results & visualizing in Grafana
|
96
|
+
- [ ] Dedicated documentation site (`github.io` or ReadTheDocs)
|
97
|
+
|
98
|
+
---
|
99
|
+
|
100
|
+
## 🤝 How to Contribute
|
101
|
+
We welcome contributions from the community! To get started:
|
102
|
+
|
103
|
+
1. **Clone the repository:**
|
104
|
+
```bash
|
105
|
+
git clone https://github.com/bbartling/open-fdd.git && cd open-fdd
|
106
|
+
```
|
107
|
+
2. **Install dependencies:**
|
108
|
+
```bash
|
109
|
+
py -3.12 -m pip install -r requirements.txt
|
110
|
+
```
|
111
|
+
3. **Run tests:**
|
112
|
+
```bash
|
113
|
+
py -3.12 -m pytest
|
114
|
+
```
|
115
|
+
4. **Format with Black:**
|
116
|
+
```bash
|
117
|
+
py -3.12 -m black .
|
118
|
+
```
|
119
|
+
5. **Submit a Pull Request (PR)**
|
120
|
+
|
121
|
+
---
|
122
|
+
|
123
|
+
## 📜 License
|
124
|
+
`open-fdd` is released under the **MIT License**, ensuring it remains free and accessible for all.
|
125
|
+
|
126
|
+
```
|
127
|
+
|
128
|
+
【MIT License】
|
129
|
+
|
130
|
+
Copyright 2024 Ben Bartling
|
131
|
+
|
132
|
+
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:
|
133
|
+
|
134
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
135
|
+
|
136
|
+
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.
|
@@ -1,21 +1,23 @@
|
|
1
1
|
open_fdd/__init__.py,sha256=iGj8QTOZJUTE4nNnBiCHXEXsOdV6YvKcGiLrnOusJCg,1411
|
2
2
|
open_fdd/air_handling_unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
open_fdd/air_handling_unit/faults/__init__.py,sha256=
|
3
|
+
open_fdd/air_handling_unit/faults/__init__.py,sha256=rJwnOYO0Ix0mPXg4KEghC3vvNTDnBiRwS-myEa8-bgI,64124
|
4
4
|
open_fdd/air_handling_unit/faults/fault_condition.py,sha256=UN2_k2AZWMDoO4oPAnJW3fvhkHlMkLXZikzU2lXAOuQ,2364
|
5
5
|
open_fdd/air_handling_unit/faults/helper_utils.py,sha256=el_s2BC9Q14GXUGnazOiBBhzVUMsPBP9sxEG1UIQ6Gw,12668
|
6
6
|
open_fdd/air_handling_unit/faults/shared_utils.py,sha256=rAx27IsG_7OEHLLFHool6o9LAuaMyYisit9gLu8ZVQk,2802
|
7
7
|
open_fdd/air_handling_unit/reports/__init__.py,sha256=JccL19Spj6vE0Jo_57CmZEFucu4WbCPj1-pIwR5LmPg,40741
|
8
8
|
open_fdd/air_handling_unit/reports/fault_report.py,sha256=QxYLJzoLTwf1N0nls2XMmhHJvBSgGCBNT0KxA59QG4Y,1442
|
9
|
+
open_fdd/chiller_plant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
+
open_fdd/chiller_plant/faults/__init__.py,sha256=RVoyleGYpMOg_pkwyaHCNuiMRVvvPnGvAYLFMr-jAWY,92796
|
9
11
|
open_fdd/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
12
|
open_fdd/tests/ahu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
13
|
open_fdd/tests/ahu/test_ahu_fc1.py,sha256=Pw5XlQ19c5Sit0Lyuor8L8lKgxl5PFn4UhruIHyKDfc,5439
|
12
14
|
open_fdd/tests/ahu/test_ahu_fc10.py,sha256=niYL7fi6OlgP0wnF8hNh9A07PLzHiRZkyRkrA1zoL2s,4577
|
13
|
-
open_fdd/tests/ahu/test_ahu_fc11.py,sha256=
|
14
|
-
open_fdd/tests/ahu/test_ahu_fc12.py,sha256=
|
15
|
-
open_fdd/tests/ahu/test_ahu_fc13.py,sha256=
|
16
|
-
open_fdd/tests/ahu/test_ahu_fc14.py,sha256=
|
17
|
-
open_fdd/tests/ahu/test_ahu_fc15.py,sha256=
|
18
|
-
open_fdd/tests/ahu/test_ahu_fc16.py,sha256=
|
15
|
+
open_fdd/tests/ahu/test_ahu_fc11.py,sha256=HrqfRCEbhRSGGpa4_ote0iGIsZXcAf2ppm5KcQXvYrc,4152
|
16
|
+
open_fdd/tests/ahu/test_ahu_fc12.py,sha256=7SUcF3bdIxxLfd8TeOQOYgtwc0IGzKhtZA6dBh9Il4s,7206
|
17
|
+
open_fdd/tests/ahu/test_ahu_fc13.py,sha256=mN0XMOrsnxd-iR5A0euPZHTmkv8sDQEz0FANKPdd_r0,6064
|
18
|
+
open_fdd/tests/ahu/test_ahu_fc14.py,sha256=49A20E8vVt2TZQbaAHorqhuQtlh6rqkWiP46AdXJWKc,8409
|
19
|
+
open_fdd/tests/ahu/test_ahu_fc15.py,sha256=CFZEg9g791SEl9VdZ_eG-CPok9yRVMzJVkcWWe1HBRM,8158
|
20
|
+
open_fdd/tests/ahu/test_ahu_fc16.py,sha256=htGlPAnnbzrHWBZ_6YY85gns5R2Zdw4HubTqDX-gJlY,9451
|
19
21
|
open_fdd/tests/ahu/test_ahu_fc2.py,sha256=CjmO_WUyaSHs17ifCCew3GBJ43nYG55uGL0vHDZpAq8,4736
|
20
22
|
open_fdd/tests/ahu/test_ahu_fc3.py,sha256=NB6pOXDS-R4P0LNoRN8ItAqhhLnGnGuAHZha32Qw-hE,4658
|
21
23
|
open_fdd/tests/ahu/test_ahu_fc4.py,sha256=vV8jEnFuNGLfhCoTVz29RsIcoDpDOMWg722G0aBEXaE,6304
|
@@ -24,8 +26,11 @@ open_fdd/tests/ahu/test_ahu_fc6.py,sha256=66dwv0EBU_ujZK-J9Ki5a3fnXlk17nOwmtKDiQ
|
|
24
26
|
open_fdd/tests/ahu/test_ahu_fc7.py,sha256=sABbw2m7WlAXbsqfDD323vfEfg606ThI0QzQyB-OjFo,2469
|
25
27
|
open_fdd/tests/ahu/test_ahu_fc8.py,sha256=UZy6BP2PgV1FROUPqMORTx8YnT5ZvqVDhut_Ar81494,4663
|
26
28
|
open_fdd/tests/ahu/test_ahu_fc9.py,sha256=b-eIzhNzjZUjVNsP0JAHkOgZu-BtDuPeNnblVVm-jU8,4796
|
27
|
-
open_fdd
|
28
|
-
open_fdd
|
29
|
-
open_fdd
|
30
|
-
open_fdd-0.1.
|
31
|
-
open_fdd-0.1.
|
29
|
+
open_fdd/tests/chiller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
+
open_fdd/tests/chiller/test_chiller_fc1.py,sha256=VSSpEHVLGtozixQy6IVm4TbdOBcvYOPZ1b5mb6WpEy4,3730
|
31
|
+
open_fdd/tests/chiller/test_chiller_fc2.py,sha256=vs_XA2RFskbEGbM5VuoG86UmghnKhvwY3d02hQlT4mA,3044
|
32
|
+
open_fdd-0.1.8.dist-info/LICENSE,sha256=eghao_GGx_0gB2Sll3x2vV29knONEzUQKrkaXpX1F7w,1087
|
33
|
+
open_fdd-0.1.8.dist-info/METADATA,sha256=GzfmmY4xwDzfLc9GfnV3n_AUJAGZCjZ3rtMwlF9jEj8,5613
|
34
|
+
open_fdd-0.1.8.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
35
|
+
open_fdd-0.1.8.dist-info/top_level.txt,sha256=Q7sB6UB2d8Ch1v_xIsTiNegmgcCXPkwkrxK3ug6VEOs,9
|
36
|
+
open_fdd-0.1.8.dist-info/RECORD,,
|
@@ -1,95 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: open_fdd
|
3
|
-
Version: 0.1.7
|
4
|
-
Summary: A package for fault detection and diagnosis in HVAC systems
|
5
|
-
Home-page: https://github.com/bbartling/open-fdd
|
6
|
-
Author: Ben Bartling
|
7
|
-
Author-email: ben.bartling@gmail.com
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
10
|
-
Classifier: Operating System :: OS Independent
|
11
|
-
Requires-Python: >=3.6
|
12
|
-
Description-Content-Type: text/markdown
|
13
|
-
License-File: LICENSE
|
14
|
-
Requires-Dist: pandas
|
15
|
-
Requires-Dist: matplotlib
|
16
|
-
Requires-Dist: pytest
|
17
|
-
|
18
|
-
# open-fdd
|
19
|
-
|
20
|
-

|
21
|
-

|
22
|
-

|
23
|
-

|
24
|
-
|
25
|
-
|
26
|
-

|
27
|
-
|
28
|
-
|
29
|
-
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.
|
30
|
-
|
31
|
-
|
32
|
-
## Getting Setup
|
33
|
-
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:
|
34
|
-
|
35
|
-
```bash
|
36
|
-
pip install open-fdd
|
37
|
-
```
|
38
|
-
|
39
|
-
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`.
|
40
|
-
|
41
|
-
## Project goals
|
42
|
-
The following are key objectives to enhance this project into a fully interactive Fault Detection and Diagnostics (FDD) application.
|
43
|
-
|
44
|
-
### Completed
|
45
|
-
- [x] Develop and finalize `air_handling_unit` fault conditions and reports, aligning with ASHRAE and NIST standards.
|
46
|
-
- [x] Publish the project as a Python library on PyPI.
|
47
|
-
|
48
|
-
### In Progress
|
49
|
-
- [ ] Create IPython notebook tutorials showcasing AHU FDD examples, incorporating BRICK metadata integration.
|
50
|
-
- [ ] Extend the project to include `central_plant` fault conditions, IPython reports, and example applications for boiler and chiller systems.
|
51
|
-
|
52
|
-
|
53
|
-
### Upcoming
|
54
|
-
- [ ] Design `energy_efficiency` fault detection modules, including IPython reports and examples focused on optimizing energy consumption.
|
55
|
-
- [ ] Develop `metering` fault conditions, along with IPython reports and examples, potentially modeling utility metering data.
|
56
|
-
- [ ] Implement SQL integration examples for reading data from a time series database, writing back to SQL, and visualizing faults in Grafana.
|
57
|
-
|
58
|
-
### Future Considerations
|
59
|
-
Explore additional features and enhancements as the project evolves.
|
60
|
-
- [ ] Explore additional features and enhancements as the project evolves.
|
61
|
-
- [ ] Develop a comprehensive guide on a github.io website (or other?) for defining fault parameters, including error thresholds and other critical settings.
|
62
|
-
|
63
|
-
|
64
|
-
## Contribute
|
65
|
-
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:
|
66
|
-
* https://www.python.org/downloads/
|
67
|
-
|
68
|
-
1. **Adding New Faults and Reports:**
|
69
|
-
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.
|
70
|
-
|
71
|
-
2. **Testing Fault Logic:**
|
72
|
-
All fault logic is rigorously tested using `pytest`. You can run the tests with `> py -m pytest`.
|
73
|
-
|
74
|
-
3. **Formatting with Black:**
|
75
|
-
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 .`
|
76
|
-
|
77
|
-
4. **Pushing to GitHub:**
|
78
|
-
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.
|
79
|
-
|
80
|
-
|
81
|
-
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.
|
82
|
-
|
83
|
-
Got any ideas or questions? Submit a Git issue or start a Discussion...
|
84
|
-
|
85
|
-
## License
|
86
|
-
|
87
|
-
【MIT License】
|
88
|
-
|
89
|
-
Copyright 2024 Ben Bartling
|
90
|
-
|
91
|
-
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:
|
92
|
-
|
93
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
94
|
-
|
95
|
-
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.
|
File without changes
|
File without changes
|