open-fdd 0.1.6__tar.gz → 0.1.8__tar.gz

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.
Files changed (66) hide show
  1. open_fdd-0.1.8/PKG-INFO +136 -0
  2. open_fdd-0.1.8/README.md +110 -0
  3. open_fdd-0.1.8/open_fdd/air_handling_unit/faults/__init__.py +1487 -0
  4. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/faults/helper_utils.py +3 -0
  5. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/faults/shared_utils.py +16 -1
  6. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/reports/__init__.py +23 -10
  7. {open_fdd-0.1.6/open_fdd/air_handling_unit → open_fdd-0.1.8/open_fdd/chiller_plant}/faults/__init__.py +96 -69
  8. open_fdd-0.1.8/open_fdd/tests/ahu/__init__.py +0 -0
  9. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc1.py +1 -0
  10. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc11.py +22 -30
  11. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc12.py +54 -15
  12. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc13.py +13 -5
  13. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc14.py +9 -0
  14. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc15.py +13 -1
  15. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc16.py +33 -10
  16. open_fdd-0.1.8/open_fdd/tests/chiller/__init__.py +0 -0
  17. open_fdd-0.1.8/open_fdd/tests/chiller/test_chiller_fc1.py +122 -0
  18. open_fdd-0.1.8/open_fdd/tests/chiller/test_chiller_fc2.py +95 -0
  19. open_fdd-0.1.8/open_fdd.egg-info/PKG-INFO +136 -0
  20. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd.egg-info/SOURCES.txt +7 -21
  21. {open_fdd-0.1.6 → open_fdd-0.1.8}/setup.py +2 -2
  22. open_fdd-0.1.8/tests/test_base_fault.py +43 -0
  23. open_fdd-0.1.6/PKG-INFO +0 -95
  24. open_fdd-0.1.6/README.md +0 -78
  25. open_fdd-0.1.6/open_fdd/air_handling_unit/images/example1.jpg +0 -0
  26. open_fdd-0.1.6/open_fdd/air_handling_unit/images/example2.jpg +0 -0
  27. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc10_definition.png +0 -0
  28. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc11_definition.png +0 -0
  29. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc12_definition.png +0 -0
  30. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc13_definition.png +0 -0
  31. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc1_definition.png +0 -0
  32. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc1_report_screenshot_all.png +0 -0
  33. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc2_definition.png +0 -0
  34. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc3_definition.png +0 -0
  35. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc4_definition.png +0 -0
  36. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc5_definition.png +0 -0
  37. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc6_definition.png +0 -0
  38. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc7_definition.png +0 -0
  39. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc8_definition.png +0 -0
  40. open_fdd-0.1.6/open_fdd/air_handling_unit/images/fc9_definition.png +0 -0
  41. open_fdd-0.1.6/open_fdd/air_handling_unit/images/latex_generator.py +0 -208
  42. open_fdd-0.1.6/open_fdd/air_handling_unit/images/params.docx +0 -0
  43. open_fdd-0.1.6/open_fdd/air_handling_unit/images/params.pdf +0 -0
  44. open_fdd-0.1.6/open_fdd/air_handling_unit/images/plot_for_repo.png +0 -0
  45. open_fdd-0.1.6/open_fdd.egg-info/PKG-INFO +0 -95
  46. {open_fdd-0.1.6 → open_fdd-0.1.8}/LICENSE +0 -0
  47. {open_fdd-0.1.6 → open_fdd-0.1.8}/MANIFEST.in +0 -0
  48. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/__init__.py +0 -0
  49. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/__init__.py +0 -0
  50. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/faults/fault_condition.py +0 -0
  51. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/air_handling_unit/reports/fault_report.py +0 -0
  52. {open_fdd-0.1.6/open_fdd/tests → open_fdd-0.1.8/open_fdd/chiller_plant}/__init__.py +0 -0
  53. {open_fdd-0.1.6/open_fdd/tests/ahu → open_fdd-0.1.8/open_fdd/tests}/__init__.py +0 -0
  54. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc10.py +0 -0
  55. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc2.py +0 -0
  56. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc3.py +0 -0
  57. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc4.py +0 -0
  58. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc5.py +0 -0
  59. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc6.py +0 -0
  60. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc7.py +0 -0
  61. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc8.py +0 -0
  62. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd/tests/ahu/test_ahu_fc9.py +0 -0
  63. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd.egg-info/dependency_links.txt +0 -0
  64. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd.egg-info/requires.txt +0 -0
  65. {open_fdd-0.1.6 → open_fdd-0.1.8}/open_fdd.egg-info/top_level.txt +0 -0
  66. {open_fdd-0.1.6 → open_fdd-0.1.8}/setup.cfg +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
+ ![CI](https://github.com/bbartling/open-fdd/actions/workflows/ci.yml/badge.svg?branch=master)
30
+ ![MIT License](https://img.shields.io/badge/license-MIT-green.svg)
31
+ ![Black](https://img.shields.io/badge/code%20style-black-000000.svg)
32
+ ![PyPI](https://img.shields.io/pypi/v/open-fdd?color=blue&label=pypi%20version)
33
+
34
+ ![Fault Detection Visualization](https://raw.githubusercontent.com/bbartling/open-fdd/master/open_fdd/air_handling_unit/images/plot_for_repo.png)
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.
@@ -0,0 +1,110 @@
1
+ # open-fdd
2
+
3
+ ![CI](https://github.com/bbartling/open-fdd/actions/workflows/ci.yml/badge.svg?branch=master)
4
+ ![MIT License](https://img.shields.io/badge/license-MIT-green.svg)
5
+ ![Black](https://img.shields.io/badge/code%20style-black-000000.svg)
6
+ ![PyPI](https://img.shields.io/pypi/v/open-fdd?color=blue&label=pypi%20version)
7
+
8
+ ![Fault Detection Visualization](https://raw.githubusercontent.com/bbartling/open-fdd/master/open_fdd/air_handling_unit/images/plot_for_repo.png)
9
+
10
+ ## 🔥 What is open-fdd?
11
+ **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:
12
+
13
+ This version improves clarity and flow while keeping it professional and readable. 🚀 Let me know if you want any more refinements!
14
+
15
+ ✅ **Pre-built fault equations** for detecting HVAC anomalies
16
+ ✅ **Seamless Pandas integration** for time-series analysis
17
+ ✅ **Extensible architecture** for custom fault conditions
18
+ ✅ **Open-source & community-driven** development
19
+
20
+
21
+ 📖 **See Online Documentation:**
22
+ [📚 Open-FDD Docs](https://bbartling.github.io/open-fdd/)
23
+
24
+ ---
25
+
26
+ ## 🚀 Getting Started
27
+ ### Installation
28
+ Install `open-fdd` from PyPI with:
29
+ ```bash
30
+ pip install open-fdd
31
+ ```
32
+
33
+ ### Quick Example
34
+ ```python
35
+ import pandas as pd
36
+ from open_fdd.air_handling_unit.fault_condition_one import FaultConditionOne
37
+
38
+ # Sample data
39
+ data = {
40
+ "timestamp": pd.date_range(start="2023-01-01", periods=10, freq="15T"),
41
+ "supply_air_temp": [54, 55, 56, 57, 58, 59, 60, 61, 62, 63],
42
+ "return_air_temp": [70, 70, 70, 70, 70, 70, 70, 70, 70, 70],
43
+ }
44
+ df = pd.DataFrame(data)
45
+
46
+ # Run fault detection
47
+ fault_checker = FaultConditionOne(df)
48
+ df_faults = fault_checker.process()
49
+ print(df_faults)
50
+ ```
51
+
52
+ ---
53
+
54
+ ## 📌 Project Goals
55
+ `open-fdd` aims to provide a full-featured **Fault Detection & Diagnostics (FDD) platform** with:
56
+
57
+ ### ✅ Completed Features
58
+ - [x] Air handling unit (AHU) fault conditions & reports (aligned with ASHRAE/NIST)
59
+ - [x] PyPI distribution for easy installation
60
+
61
+ ### 🔄 In Progress
62
+ - [ ] Jupyter notebook tutorials showcasing AHU FDD examples + BRICK metadata integration
63
+ - [ ] Expansion to **central plant** fault conditions (chillers, boilers, pumps)
64
+ - [ ] Jupyter notebook tutorials showcasing AHU FDD examples + BRICK metadata integration
65
+
66
+ ### ⏳ Upcoming
67
+ - [ ] **Energy Efficiency** fault detection & reporting
68
+ - [ ] **Metering** fault analytics & data modeling
69
+ - [ ] **SQL Integration** for storing results & visualizing in Grafana
70
+ - [ ] Dedicated documentation site (`github.io` or ReadTheDocs)
71
+
72
+ ---
73
+
74
+ ## 🤝 How to Contribute
75
+ We welcome contributions from the community! To get started:
76
+
77
+ 1. **Clone the repository:**
78
+ ```bash
79
+ git clone https://github.com/bbartling/open-fdd.git && cd open-fdd
80
+ ```
81
+ 2. **Install dependencies:**
82
+ ```bash
83
+ py -3.12 -m pip install -r requirements.txt
84
+ ```
85
+ 3. **Run tests:**
86
+ ```bash
87
+ py -3.12 -m pytest
88
+ ```
89
+ 4. **Format with Black:**
90
+ ```bash
91
+ py -3.12 -m black .
92
+ ```
93
+ 5. **Submit a Pull Request (PR)**
94
+
95
+ ---
96
+
97
+ ## 📜 License
98
+ `open-fdd` is released under the **MIT License**, ensuring it remains free and accessible for all.
99
+
100
+ ```
101
+
102
+ 【MIT License】
103
+
104
+ Copyright 2024 Ben Bartling
105
+
106
+ 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:
107
+
108
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
109
+
110
+ 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.