camber-toolkit 0.1.0__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 (149) hide show
  1. camber_toolkit-0.1.0/LICENSE +202 -0
  2. camber_toolkit-0.1.0/MANIFEST.in +7 -0
  3. camber_toolkit-0.1.0/NOTICE +7 -0
  4. camber_toolkit-0.1.0/PKG-INFO +227 -0
  5. camber_toolkit-0.1.0/README.md +180 -0
  6. camber_toolkit-0.1.0/camber/__init__.py +3 -0
  7. camber_toolkit-0.1.0/camber/ahu.py +137 -0
  8. camber_toolkit-0.1.0/camber/api/__init__.py +6 -0
  9. camber_toolkit-0.1.0/camber/api/read.py +52 -0
  10. camber_toolkit-0.1.0/camber/api/server.py +101 -0
  11. camber_toolkit-0.1.0/camber/boilercycle.py +63 -0
  12. camber_toolkit-0.1.0/camber/bps.py +170 -0
  13. camber_toolkit-0.1.0/camber/carbon.py +57 -0
  14. camber_toolkit-0.1.0/camber/charts/__init__.py +2 -0
  15. camber_toolkit-0.1.0/camber/charts/box_reheat.py +69 -0
  16. camber_toolkit-0.1.0/camber/charts/carpet.py +59 -0
  17. camber_toolkit-0.1.0/camber/charts/cusum_chart.py +45 -0
  18. camber_toolkit-0.1.0/camber/charts/energy_signature.py +51 -0
  19. camber_toolkit-0.1.0/camber/charts/scatter.py +138 -0
  20. camber_toolkit-0.1.0/camber/charts/timeseries.py +41 -0
  21. camber_toolkit-0.1.0/camber/charts/zones_chart.py +47 -0
  22. camber_toolkit-0.1.0/camber/chiller.py +101 -0
  23. camber_toolkit-0.1.0/camber/chillerstaging.py +161 -0
  24. camber_toolkit-0.1.0/camber/chwplant.py +125 -0
  25. camber_toolkit-0.1.0/camber/chwpump.py +106 -0
  26. camber_toolkit-0.1.0/camber/cli.py +89 -0
  27. camber_toolkit-0.1.0/camber/comfort.py +189 -0
  28. camber_toolkit-0.1.0/camber/condenserwater.py +100 -0
  29. camber_toolkit-0.1.0/camber/config.py +209 -0
  30. camber_toolkit-0.1.0/camber/coolingtower.py +123 -0
  31. camber_toolkit-0.1.0/camber/cost.py +99 -0
  32. camber_toolkit-0.1.0/camber/demand.py +170 -0
  33. camber_toolkit-0.1.0/camber/eval.py +143 -0
  34. camber_toolkit-0.1.0/camber/fault_economics.py +316 -0
  35. camber_toolkit-0.1.0/camber/fdd_g36.py +466 -0
  36. camber_toolkit-0.1.0/camber/finance.py +121 -0
  37. camber_toolkit-0.1.0/camber/g36_reset.py +174 -0
  38. camber_toolkit-0.1.0/camber/iaq.py +100 -0
  39. camber_toolkit-0.1.0/camber/ingest/__init__.py +32 -0
  40. camber_toolkit-0.1.0/camber/ingest/bacnet.py +156 -0
  41. camber_toolkit-0.1.0/camber/ingest/base.py +38 -0
  42. camber_toolkit-0.1.0/camber/ingest/csv_perpoint.py +56 -0
  43. camber_toolkit-0.1.0/camber/ingest/csv_wide.py +41 -0
  44. camber_toolkit-0.1.0/camber/ingest/haystack.py +220 -0
  45. camber_toolkit-0.1.0/camber/ingest/modbus.py +115 -0
  46. camber_toolkit-0.1.0/camber/ingest/mqtt_stream.py +126 -0
  47. camber_toolkit-0.1.0/camber/ingest/opcua.py +182 -0
  48. camber_toolkit-0.1.0/camber/ingest/quality.py +200 -0
  49. camber_toolkit-0.1.0/camber/ingest/sql.py +144 -0
  50. camber_toolkit-0.1.0/camber/integrate/__init__.py +18 -0
  51. camber_toolkit-0.1.0/camber/integrate/tickets.py +148 -0
  52. camber_toolkit-0.1.0/camber/interop/__init__.py +13 -0
  53. camber_toolkit-0.1.0/camber/interop/better.py +82 -0
  54. camber_toolkit-0.1.0/camber/interop/brick.py +198 -0
  55. camber_toolkit-0.1.0/camber/interop/export.py +97 -0
  56. camber_toolkit-0.1.0/camber/interop/openei.py +95 -0
  57. camber_toolkit-0.1.0/camber/interop/psychro.py +54 -0
  58. camber_toolkit-0.1.0/camber/interop/pvlib_bridge.py +77 -0
  59. camber_toolkit-0.1.0/camber/interop/site_model.py +210 -0
  60. camber_toolkit-0.1.0/camber/interop/tariff_nrel.py +59 -0
  61. camber_toolkit-0.1.0/camber/inventory.py +119 -0
  62. camber_toolkit-0.1.0/camber/io.py +40 -0
  63. camber_toolkit-0.1.0/camber/leakvalve.py +93 -0
  64. camber_toolkit-0.1.0/camber/lighting.py +63 -0
  65. camber_toolkit-0.1.0/camber/loadprofile.py +70 -0
  66. camber_toolkit-0.1.0/camber/mandv/__init__.py +16 -0
  67. camber_toolkit-0.1.0/camber/mandv/caltrack.py +98 -0
  68. camber_toolkit-0.1.0/camber/mandv/categorical.py +86 -0
  69. camber_toolkit-0.1.0/camber/mandv/cusum.py +63 -0
  70. camber_toolkit-0.1.0/camber/mandv/ecm_savings.py +120 -0
  71. camber_toolkit-0.1.0/camber/mandv/intervalfit.py +116 -0
  72. camber_toolkit-0.1.0/camber/mandv/models.py +275 -0
  73. camber_toolkit-0.1.0/camber/mandv/nonroutine.py +167 -0
  74. camber_toolkit-0.1.0/camber/mandv/normalized.py +99 -0
  75. camber_toolkit-0.1.0/camber/mandv/resample.py +108 -0
  76. camber_toolkit-0.1.0/camber/mandv/retrofit_isolation.py +170 -0
  77. camber_toolkit-0.1.0/camber/mandv/stats.py +161 -0
  78. camber_toolkit-0.1.0/camber/mandv/towt.py +131 -0
  79. camber_toolkit-0.1.0/camber/mandv/weather.py +92 -0
  80. camber_toolkit-0.1.0/camber/mapping_confidence.py +107 -0
  81. camber_toolkit-0.1.0/camber/model/__init__.py +1 -0
  82. camber_toolkit-0.1.0/camber/model/entities.py +269 -0
  83. camber_toolkit-0.1.0/camber/model/mapping.py +84 -0
  84. camber_toolkit-0.1.0/camber/model/roles.py +146 -0
  85. camber_toolkit-0.1.0/camber/oafraction.py +107 -0
  86. camber_toolkit-0.1.0/camber/overcooling.py +136 -0
  87. camber_toolkit-0.1.0/camber/overcooling_severity.py +224 -0
  88. camber_toolkit-0.1.0/camber/plant.py +152 -0
  89. camber_toolkit-0.1.0/camber/points.py +116 -0
  90. camber_toolkit-0.1.0/camber/pv.py +88 -0
  91. camber_toolkit-0.1.0/camber/rcx.py +222 -0
  92. camber_toolkit-0.1.0/camber/realio.py +127 -0
  93. camber_toolkit-0.1.0/camber/reheat.py +163 -0
  94. camber_toolkit-0.1.0/camber/report/__init__.py +7 -0
  95. camber_toolkit-0.1.0/camber/report/audit.py +172 -0
  96. camber_toolkit-0.1.0/camber/report/fleet.py +204 -0
  97. camber_toolkit-0.1.0/camber/resolve.py +173 -0
  98. camber_toolkit-0.1.0/camber/rules/__init__.py +1 -0
  99. camber_toolkit-0.1.0/camber/rules/base.py +177 -0
  100. camber_toolkit-0.1.0/camber/rules/boiler_rule.py +76 -0
  101. camber_toolkit-0.1.0/camber/rules/boilercycle_rule.py +62 -0
  102. camber_toolkit-0.1.0/camber/rules/builtin.py +61 -0
  103. camber_toolkit-0.1.0/camber/rules/chiller_rule.py +70 -0
  104. camber_toolkit-0.1.0/camber/rules/chillerfleet_rule.py +62 -0
  105. camber_toolkit-0.1.0/camber/rules/chillerstaging_rule.py +74 -0
  106. camber_toolkit-0.1.0/camber/rules/chwplant_rule.py +66 -0
  107. camber_toolkit-0.1.0/camber/rules/chwpump_rule.py +66 -0
  108. camber_toolkit-0.1.0/camber/rules/condenserwater_rule.py +65 -0
  109. camber_toolkit-0.1.0/camber/rules/coolingtower_rule.py +74 -0
  110. camber_toolkit-0.1.0/camber/rules/hwplant_deltat_rule.py +66 -0
  111. camber_toolkit-0.1.0/camber/rules/hwpump_rule.py +56 -0
  112. camber_toolkit-0.1.0/camber/rules/iaq_rule.py +67 -0
  113. camber_toolkit-0.1.0/camber/rules/leakvalve_rule.py +59 -0
  114. camber_toolkit-0.1.0/camber/rules/oafraction_rule.py +80 -0
  115. camber_toolkit-0.1.0/camber/rules/overcooling_rule.py +67 -0
  116. camber_toolkit-0.1.0/camber/rules/overcooling_severity_rule.py +77 -0
  117. camber_toolkit-0.1.0/camber/rules/reheat_min_rule.py +78 -0
  118. camber_toolkit-0.1.0/camber/rules/reheat_rule.py +72 -0
  119. camber_toolkit-0.1.0/camber/rules/satreset_rule.py +72 -0
  120. camber_toolkit-0.1.0/camber/rules/setback_rule.py +64 -0
  121. camber_toolkit-0.1.0/camber/rules/simul_hc.py +62 -0
  122. camber_toolkit-0.1.0/camber/rules/static_rule.py +53 -0
  123. camber_toolkit-0.1.0/camber/rules/triage.py +183 -0
  124. camber_toolkit-0.1.0/camber/rules/zones_rule.py +77 -0
  125. camber_toolkit-0.1.0/camber/satreset.py +145 -0
  126. camber_toolkit-0.1.0/camber/schedules.py +53 -0
  127. camber_toolkit-0.1.0/camber/sensordrift.py +138 -0
  128. camber_toolkit-0.1.0/camber/sensorhealth.py +226 -0
  129. camber_toolkit-0.1.0/camber/setback.py +92 -0
  130. camber_toolkit-0.1.0/camber/soo.py +298 -0
  131. camber_toolkit-0.1.0/camber/soo_library.py +72 -0
  132. camber_toolkit-0.1.0/camber/staticpressure.py +150 -0
  133. camber_toolkit-0.1.0/camber/store/__init__.py +12 -0
  134. camber_toolkit-0.1.0/camber/store/bench.py +108 -0
  135. camber_toolkit-0.1.0/camber/store/parquet_store.py +355 -0
  136. camber_toolkit-0.1.0/camber/synth.py +68 -0
  137. camber_toolkit-0.1.0/camber/tariff.py +275 -0
  138. camber_toolkit-0.1.0/camber/units.py +58 -0
  139. camber_toolkit-0.1.0/camber/validation.py +135 -0
  140. camber_toolkit-0.1.0/camber/water.py +133 -0
  141. camber_toolkit-0.1.0/camber/zones.py +80 -0
  142. camber_toolkit-0.1.0/camber_toolkit.egg-info/PKG-INFO +227 -0
  143. camber_toolkit-0.1.0/camber_toolkit.egg-info/SOURCES.txt +147 -0
  144. camber_toolkit-0.1.0/camber_toolkit.egg-info/dependency_links.txt +1 -0
  145. camber_toolkit-0.1.0/camber_toolkit.egg-info/entry_points.txt +2 -0
  146. camber_toolkit-0.1.0/camber_toolkit.egg-info/requires.txt +42 -0
  147. camber_toolkit-0.1.0/camber_toolkit.egg-info/top_level.txt +1 -0
  148. camber_toolkit-0.1.0/pyproject.toml +77 -0
  149. camber_toolkit-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ # Keep the sdist library-only: the package + project metadata (README/LICENSE/
2
+ # NOTICE/pyproject are included automatically). Tests and examples live in the
3
+ # repo, not the published distribution.
4
+ prune tests
5
+ prune examples
6
+ prune docs
7
+ global-exclude __pycache__ *.py[cod]
@@ -0,0 +1,7 @@
1
+ CAMBER — Commissioning, Analytics & M&V for Building Energy Re-tuning
2
+ Copyright 2026 The CAMBER authors
3
+
4
+ This product includes software for analyzing Building Automation System (BAS)
5
+ trend data. Its algorithms are reimplemented from public standards (ASHRAE
6
+ Guideline 36, Guideline 14, Standard 55, Standard 211; IPMVP; PNNL Building
7
+ Re-tuning; NIST APAR). No third-party source code is included.
@@ -0,0 +1,227 @@
1
+ Metadata-Version: 2.4
2
+ Name: camber-toolkit
3
+ Version: 0.1.0
4
+ Summary: Vendor-neutral building-automation-system trend analysis: FDD, M&V, and retro-commissioning
5
+ Author: The CAMBER authors
6
+ License: Apache-2.0
7
+ Keywords: BAS,HVAC,FDD,fault detection,measurement and verification,retro-commissioning,ASHRAE,energy,EMIS
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Topic :: Scientific/Engineering
15
+ Requires-Python: >=3.10
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ License-File: NOTICE
19
+ Requires-Dist: numpy<2,>=1.24
20
+ Requires-Dist: pandas<3,>=2.0
21
+ Requires-Dist: matplotlib>=3.7
22
+ Requires-Dist: pyarrow>=14
23
+ Provides-Extra: dev
24
+ Requires-Dist: pytest>=7; extra == "dev"
25
+ Provides-Extra: brick
26
+ Requires-Dist: rdflib>=6; extra == "brick"
27
+ Provides-Extra: haystack
28
+ Requires-Dist: phable>=0.1.0; python_version >= "3.11" and extra == "haystack"
29
+ Requires-Dist: pyhaystack; python_version < "3.11" and extra == "haystack"
30
+ Provides-Extra: tariff
31
+ Requires-Dist: nrel-pysam>=4; extra == "tariff"
32
+ Provides-Extra: better
33
+ Requires-Dist: better-lbnl-os; extra == "better"
34
+ Provides-Extra: psychro
35
+ Requires-Dist: psychrolib>=2; extra == "psychro"
36
+ Provides-Extra: pv
37
+ Requires-Dist: pvlib>=0.10; extra == "pv"
38
+ Provides-Extra: modbus
39
+ Requires-Dist: pymodbus>=3; extra == "modbus"
40
+ Provides-Extra: mqtt
41
+ Requires-Dist: paho-mqtt>=1.6; extra == "mqtt"
42
+ Provides-Extra: bacnet
43
+ Requires-Dist: bacpypes3>=0.0.98; extra == "bacnet"
44
+ Provides-Extra: opcua
45
+ Requires-Dist: asyncua>=1.0; extra == "opcua"
46
+ Dynamic: license-file
47
+
48
+ # CAMBER
49
+
50
+ [![CI](https://github.com/yroussev/camber/actions/workflows/ci.yml/badge.svg)](https://github.com/yroussev/camber/actions/workflows/ci.yml)
51
+
52
+ **Commissioning, Analytics & M&V for Building Energy Re-tuning**
53
+
54
+ A vendor-neutral Python toolkit for analyzing Building Automation System (BAS)
55
+ trend data — fault detection & diagnostics (FDD), measurement & verification
56
+ (M&V), and retro-commissioning (RCx) — across *any* building, independent of the
57
+ BAS vendor.
58
+
59
+ The core idea: points are mapped to a small vocabulary of vendor-neutral **roles**
60
+ (`HEAT_VALVE`, `SUPPLY_AIR_TEMP`, `OAT`, …), and every diagnostic is written
61
+ against those roles. Map a building's tags once and the whole rule set runs on it
62
+ — one rule, all equipment, any BAS.
63
+
64
+ ## What it does
65
+
66
+ - **Ingest** — adapters for per-point CSV exports, wide/tabular CSV, and a Project
67
+ Haystack `hisRead` client (behind an injectable transport).
68
+ - **Semantic model** — a role vocabulary + mapping provider, plus a site/equipment
69
+ /point entity model with **completeness validation** (which analytics a
70
+ building's instrumentation can support). **Brick interop**: derive the
71
+ point→role mapping automatically from a building's Brick (`.ttl`) model.
72
+ - **FDD** — a rule engine implementing ASHRAE Guideline 36 AFDD (operating states,
73
+ fault conditions FC#1–15, trim-and-respond resets) and PNNL Building Re-tuning
74
+ diagnostics (simultaneous heat/cool, reheat penalty, SAT/CHW reset, economizer,
75
+ boiler lockout, overcooling, setback, OA fraction incl. under-ventilation,
76
+ leaking valves, static/pump resets). Plus impact prioritization, fault-lifecycle
77
+ tracking, and an FDD-accuracy benchmark harness (scored against labeled data).
78
+ - **M&V** — IPMVP / ASHRAE Guideline 14 change-point inverse models (2P–5P plus
79
+ heating-zero variants) and the LBNL Time-of-Week & Temperature (TOWT) model for
80
+ schedule-driven loads, CV(RMSE)/NMBE statistics and fractional savings
81
+ uncertainty, CUSUM savings tracking, weather normalization (TMY/EPW), and
82
+ rate/energy-aware resampling.
83
+ - **Cost & carbon** — utility cost accounting (energy + demand + time-of-use, and
84
+ tiered water/wastewater with marginal vs. average rates) and GHG emissions
85
+ (eGRID/EIA factors → CO₂e and intensity).
86
+ - **Water** — irrigation water budgets (ETo / landscape coefficient / efficiency /
87
+ effective precipitation), cooling-tower makeup (cycles of concentration,
88
+ gal/ton-hr), and leak detection (minimum night flow, flow duration, leak cost).
89
+ - **Load profiling** — peak / near-peak / base, base-to-peak ratio, load factor,
90
+ load-duration curve, and weekday/weekend daily shapes.
91
+ - **On-site systems** — PV performance ratio, specific yield, and net/self-
92
+ consumption energy; lighting operational efficiency vs. installed power with
93
+ controls-fault flags (failed setback, no turndown).
94
+ - **Comfort** — Fanger PMV/PPD per ASHRAE Standard 55 / ISO 7730.
95
+ - **Reporting** — ASHRAE/ACCA Standard 211 audit deliverables (benchmark +
96
+ prioritized findings + ECM table) to text/HTML, and a fleet/portfolio rollup
97
+ (cross-sectional EUI benchmarking + fleet-wide fault counts).
98
+ - **Storage** — a Parquet time-series store keyed to the entity model, with
99
+ tag-filtered reads.
100
+ - **Quality** — per-point data-quality scoring (robust outliers, flatline/gap
101
+ detection) with an auditable cleaning trail.
102
+ - **Integration** — findings → CMMS-ticket records and a pluggable notifier; a
103
+ read-only HTTP API over the store (`python -m camber.api.server <store> [port]`:
104
+ `/sites`, `/points`, `/history`).
105
+
106
+ ## Install
107
+
108
+ Python 3.10+. The PyPI distribution name is **`camber-toolkit`** (it imports as `camber`).
109
+
110
+ ```sh
111
+ pip install camber-toolkit # from PyPI
112
+ pip install "camber-toolkit[brick]" # + rdflib, for robust Brick-model parsing (optional)
113
+ ```
114
+
115
+ From source (for development):
116
+
117
+ ```sh
118
+ pip install -e . # the package (editable)
119
+ pip install -e .[dev] # + pytest, for development
120
+ pip install -e .[brick] # + rdflib, for robust Brick-model parsing (optional)
121
+ pip install -e .[haystack] # + a Haystack client (phable / pyhaystack) (optional)
122
+ ```
123
+
124
+ ## Quickstart
125
+
126
+ ```sh
127
+ python -m pytest -q # run the test suite
128
+ python examples/synthetic_demo.py # data-free FDD demo on generated trends
129
+ ```
130
+
131
+ ## Usage
132
+
133
+ Everything runs on **role-named frames** — a DataFrame whose columns are
134
+ vendor-neutral `Role`s. Map a building's tags to roles once, then every diagnostic
135
+ and model runs on it.
136
+
137
+ **Fault detection** — run a diagnostic, get a structured `Finding`:
138
+
139
+ ```python
140
+ import numpy as np, pandas as pd
141
+ from camber.model.roles import Role
142
+ from camber.rules.simul_hc import SimultaneousHeatCool
143
+
144
+ idx = pd.date_range("2025-07-07", periods=24 * 7, freq="1h")
145
+ frame = pd.DataFrame({
146
+ Role.OAT: 90 + 10 * np.sin((idx.hour - 9) / 24 * 2 * np.pi),
147
+ Role.COOL_VALVE: 70.0, # cooling all day
148
+ Role.HEAT_VALVE: np.where((idx.dayofweek < 5) & idx.hour.isin([11, 12, 13, 14]),
149
+ 40.0, 0.0), # midday reheat — a fault
150
+ }, index=idx)
151
+
152
+ f = SimultaneousHeatCool().analyze("AHU_1", frame)
153
+ print(f.severity, f.metrics["simultaneous_hc_pct"]) # -> fault 36.36
154
+ ```
155
+
156
+ **Measurement & verification** — fit a change-point baseline and score it:
157
+
158
+ ```python
159
+ import numpy as np
160
+ from camber.mandv.models import best_model, N_PARAMS
161
+ from camber.mandv.stats import fit_stats
162
+
163
+ oat = np.linspace(35, 100, 120)
164
+ energy = 50 + np.clip(oat - 65, 0, None) * 3 + np.random.default_rng(0).normal(0, 2, 120)
165
+ m = best_model(oat, energy) # picks the inverse model
166
+ st = fit_stats(energy, m.predict(oat), N_PARAMS[m.kind])
167
+ print(m.kind, round(st.r2, 2), f"{st.cv_rmse:.0%}") # -> 3PC 1.0 2%
168
+ ```
169
+
170
+ **Your own building** — map point names → roles in a small JSON config (or derive
171
+ it from a Brick model with `camber.interop.brick`), then `resolve()` assembles the
172
+ role-frames. See `examples/` for end-to-end runs on public datasets.
173
+
174
+ **Reproducible runs** — describe a whole analysis (source → mapping → equipment →
175
+ rules → report) in one JSON config and run it without a script:
176
+
177
+ ```sh
178
+ python -m camber.config run.json # discovers equipment, runs the rules, writes the report
179
+ ```
180
+
181
+ ## Docker
182
+
183
+ ```sh
184
+ docker build -t camber .
185
+ docker run --rm camber # runs the test suite as a clean-build proof
186
+ docker run --rm -it camber bash # interactive shell
187
+ ```
188
+
189
+ Mount a building's CSV export at `/data` to run analytics on real trends.
190
+
191
+ ## Public datasets
192
+
193
+ The toolkit is data-agnostic. Two open datasets are wired as runnable examples
194
+ (referenced + fetched, not bundled):
195
+
196
+ - **[LBNL Fault Detection and Diagnostics Datasets](https://www.osti.gov/dataexplorer/biblio/dataset/1881324)**
197
+ (CC-BY) — labeled single-duct-AHU data. `examples/lbnl_fdd/` maps its point
198
+ names to roles, validates completeness, round-trips through the Parquet store,
199
+ and detects a labeled stuck-damper fault (OAF ~21% baseline → ~100% fault).
200
+ - **[Building Data Genome Project 2](https://github.com/buds-lab/building-data-genome-project-2)**
201
+ (CC-BY) — 3,053 whole-building hourly meters. `examples/bdg2/` fits the
202
+ G14/IPMVP change-point engine (textbook 3PC on cooling energy, R² 0.78–0.94)
203
+ and ingests the portfolio into the store.
204
+
205
+ Each example has a `fetch.py` (downloads to the git-ignored `examples/_data/`) and
206
+ a runnable script. See the per-example READMEs.
207
+
208
+ ## Contributing
209
+
210
+ Contributions are welcome — new diagnostics, ingest adapters, M&V models, ontology
211
+ interop, docs, and fixes. See [CONTRIBUTING.md](CONTRIBUTING.md) for the dev setup
212
+ and conventions, [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the layered
213
+ design, [ROADMAP.md](ROADMAP.md) for what's planned and where to help,
214
+ [docs/ECOSYSTEM.md](docs/ECOSYSTEM.md) for the OSS-integration strategy, and the
215
+ [Code of Conduct](CODE_OF_CONDUCT.md). Security reports: see [SECURITY.md](SECURITY.md).
216
+
217
+ ## Provenance
218
+
219
+ This is a clean-room implementation. Algorithms are reimplemented from public
220
+ standards — ASHRAE Guideline 36, Guideline 14, Standard 55, Standard 211; IPMVP;
221
+ PNNL Building Re-tuning; NIST APAR. No third-party source code is included.
222
+
223
+ ## License
224
+
225
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
226
+
227
+ > Status: pre-release (v0.x). APIs may change.
@@ -0,0 +1,180 @@
1
+ # CAMBER
2
+
3
+ [![CI](https://github.com/yroussev/camber/actions/workflows/ci.yml/badge.svg)](https://github.com/yroussev/camber/actions/workflows/ci.yml)
4
+
5
+ **Commissioning, Analytics & M&V for Building Energy Re-tuning**
6
+
7
+ A vendor-neutral Python toolkit for analyzing Building Automation System (BAS)
8
+ trend data — fault detection & diagnostics (FDD), measurement & verification
9
+ (M&V), and retro-commissioning (RCx) — across *any* building, independent of the
10
+ BAS vendor.
11
+
12
+ The core idea: points are mapped to a small vocabulary of vendor-neutral **roles**
13
+ (`HEAT_VALVE`, `SUPPLY_AIR_TEMP`, `OAT`, …), and every diagnostic is written
14
+ against those roles. Map a building's tags once and the whole rule set runs on it
15
+ — one rule, all equipment, any BAS.
16
+
17
+ ## What it does
18
+
19
+ - **Ingest** — adapters for per-point CSV exports, wide/tabular CSV, and a Project
20
+ Haystack `hisRead` client (behind an injectable transport).
21
+ - **Semantic model** — a role vocabulary + mapping provider, plus a site/equipment
22
+ /point entity model with **completeness validation** (which analytics a
23
+ building's instrumentation can support). **Brick interop**: derive the
24
+ point→role mapping automatically from a building's Brick (`.ttl`) model.
25
+ - **FDD** — a rule engine implementing ASHRAE Guideline 36 AFDD (operating states,
26
+ fault conditions FC#1–15, trim-and-respond resets) and PNNL Building Re-tuning
27
+ diagnostics (simultaneous heat/cool, reheat penalty, SAT/CHW reset, economizer,
28
+ boiler lockout, overcooling, setback, OA fraction incl. under-ventilation,
29
+ leaking valves, static/pump resets). Plus impact prioritization, fault-lifecycle
30
+ tracking, and an FDD-accuracy benchmark harness (scored against labeled data).
31
+ - **M&V** — IPMVP / ASHRAE Guideline 14 change-point inverse models (2P–5P plus
32
+ heating-zero variants) and the LBNL Time-of-Week & Temperature (TOWT) model for
33
+ schedule-driven loads, CV(RMSE)/NMBE statistics and fractional savings
34
+ uncertainty, CUSUM savings tracking, weather normalization (TMY/EPW), and
35
+ rate/energy-aware resampling.
36
+ - **Cost & carbon** — utility cost accounting (energy + demand + time-of-use, and
37
+ tiered water/wastewater with marginal vs. average rates) and GHG emissions
38
+ (eGRID/EIA factors → CO₂e and intensity).
39
+ - **Water** — irrigation water budgets (ETo / landscape coefficient / efficiency /
40
+ effective precipitation), cooling-tower makeup (cycles of concentration,
41
+ gal/ton-hr), and leak detection (minimum night flow, flow duration, leak cost).
42
+ - **Load profiling** — peak / near-peak / base, base-to-peak ratio, load factor,
43
+ load-duration curve, and weekday/weekend daily shapes.
44
+ - **On-site systems** — PV performance ratio, specific yield, and net/self-
45
+ consumption energy; lighting operational efficiency vs. installed power with
46
+ controls-fault flags (failed setback, no turndown).
47
+ - **Comfort** — Fanger PMV/PPD per ASHRAE Standard 55 / ISO 7730.
48
+ - **Reporting** — ASHRAE/ACCA Standard 211 audit deliverables (benchmark +
49
+ prioritized findings + ECM table) to text/HTML, and a fleet/portfolio rollup
50
+ (cross-sectional EUI benchmarking + fleet-wide fault counts).
51
+ - **Storage** — a Parquet time-series store keyed to the entity model, with
52
+ tag-filtered reads.
53
+ - **Quality** — per-point data-quality scoring (robust outliers, flatline/gap
54
+ detection) with an auditable cleaning trail.
55
+ - **Integration** — findings → CMMS-ticket records and a pluggable notifier; a
56
+ read-only HTTP API over the store (`python -m camber.api.server <store> [port]`:
57
+ `/sites`, `/points`, `/history`).
58
+
59
+ ## Install
60
+
61
+ Python 3.10+. The PyPI distribution name is **`camber-toolkit`** (it imports as `camber`).
62
+
63
+ ```sh
64
+ pip install camber-toolkit # from PyPI
65
+ pip install "camber-toolkit[brick]" # + rdflib, for robust Brick-model parsing (optional)
66
+ ```
67
+
68
+ From source (for development):
69
+
70
+ ```sh
71
+ pip install -e . # the package (editable)
72
+ pip install -e .[dev] # + pytest, for development
73
+ pip install -e .[brick] # + rdflib, for robust Brick-model parsing (optional)
74
+ pip install -e .[haystack] # + a Haystack client (phable / pyhaystack) (optional)
75
+ ```
76
+
77
+ ## Quickstart
78
+
79
+ ```sh
80
+ python -m pytest -q # run the test suite
81
+ python examples/synthetic_demo.py # data-free FDD demo on generated trends
82
+ ```
83
+
84
+ ## Usage
85
+
86
+ Everything runs on **role-named frames** — a DataFrame whose columns are
87
+ vendor-neutral `Role`s. Map a building's tags to roles once, then every diagnostic
88
+ and model runs on it.
89
+
90
+ **Fault detection** — run a diagnostic, get a structured `Finding`:
91
+
92
+ ```python
93
+ import numpy as np, pandas as pd
94
+ from camber.model.roles import Role
95
+ from camber.rules.simul_hc import SimultaneousHeatCool
96
+
97
+ idx = pd.date_range("2025-07-07", periods=24 * 7, freq="1h")
98
+ frame = pd.DataFrame({
99
+ Role.OAT: 90 + 10 * np.sin((idx.hour - 9) / 24 * 2 * np.pi),
100
+ Role.COOL_VALVE: 70.0, # cooling all day
101
+ Role.HEAT_VALVE: np.where((idx.dayofweek < 5) & idx.hour.isin([11, 12, 13, 14]),
102
+ 40.0, 0.0), # midday reheat — a fault
103
+ }, index=idx)
104
+
105
+ f = SimultaneousHeatCool().analyze("AHU_1", frame)
106
+ print(f.severity, f.metrics["simultaneous_hc_pct"]) # -> fault 36.36
107
+ ```
108
+
109
+ **Measurement & verification** — fit a change-point baseline and score it:
110
+
111
+ ```python
112
+ import numpy as np
113
+ from camber.mandv.models import best_model, N_PARAMS
114
+ from camber.mandv.stats import fit_stats
115
+
116
+ oat = np.linspace(35, 100, 120)
117
+ energy = 50 + np.clip(oat - 65, 0, None) * 3 + np.random.default_rng(0).normal(0, 2, 120)
118
+ m = best_model(oat, energy) # picks the inverse model
119
+ st = fit_stats(energy, m.predict(oat), N_PARAMS[m.kind])
120
+ print(m.kind, round(st.r2, 2), f"{st.cv_rmse:.0%}") # -> 3PC 1.0 2%
121
+ ```
122
+
123
+ **Your own building** — map point names → roles in a small JSON config (or derive
124
+ it from a Brick model with `camber.interop.brick`), then `resolve()` assembles the
125
+ role-frames. See `examples/` for end-to-end runs on public datasets.
126
+
127
+ **Reproducible runs** — describe a whole analysis (source → mapping → equipment →
128
+ rules → report) in one JSON config and run it without a script:
129
+
130
+ ```sh
131
+ python -m camber.config run.json # discovers equipment, runs the rules, writes the report
132
+ ```
133
+
134
+ ## Docker
135
+
136
+ ```sh
137
+ docker build -t camber .
138
+ docker run --rm camber # runs the test suite as a clean-build proof
139
+ docker run --rm -it camber bash # interactive shell
140
+ ```
141
+
142
+ Mount a building's CSV export at `/data` to run analytics on real trends.
143
+
144
+ ## Public datasets
145
+
146
+ The toolkit is data-agnostic. Two open datasets are wired as runnable examples
147
+ (referenced + fetched, not bundled):
148
+
149
+ - **[LBNL Fault Detection and Diagnostics Datasets](https://www.osti.gov/dataexplorer/biblio/dataset/1881324)**
150
+ (CC-BY) — labeled single-duct-AHU data. `examples/lbnl_fdd/` maps its point
151
+ names to roles, validates completeness, round-trips through the Parquet store,
152
+ and detects a labeled stuck-damper fault (OAF ~21% baseline → ~100% fault).
153
+ - **[Building Data Genome Project 2](https://github.com/buds-lab/building-data-genome-project-2)**
154
+ (CC-BY) — 3,053 whole-building hourly meters. `examples/bdg2/` fits the
155
+ G14/IPMVP change-point engine (textbook 3PC on cooling energy, R² 0.78–0.94)
156
+ and ingests the portfolio into the store.
157
+
158
+ Each example has a `fetch.py` (downloads to the git-ignored `examples/_data/`) and
159
+ a runnable script. See the per-example READMEs.
160
+
161
+ ## Contributing
162
+
163
+ Contributions are welcome — new diagnostics, ingest adapters, M&V models, ontology
164
+ interop, docs, and fixes. See [CONTRIBUTING.md](CONTRIBUTING.md) for the dev setup
165
+ and conventions, [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the layered
166
+ design, [ROADMAP.md](ROADMAP.md) for what's planned and where to help,
167
+ [docs/ECOSYSTEM.md](docs/ECOSYSTEM.md) for the OSS-integration strategy, and the
168
+ [Code of Conduct](CODE_OF_CONDUCT.md). Security reports: see [SECURITY.md](SECURITY.md).
169
+
170
+ ## Provenance
171
+
172
+ This is a clean-room implementation. Algorithms are reimplemented from public
173
+ standards — ASHRAE Guideline 36, Guideline 14, Standard 55, Standard 211; IPMVP;
174
+ PNNL Building Re-tuning; NIST APAR. No third-party source code is included.
175
+
176
+ ## License
177
+
178
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
179
+
180
+ > Status: pre-release (v0.x). APIs may change.
@@ -0,0 +1,3 @@
1
+ """CAMBER — Commissioning, Analytics & M&V for Building Energy Re-tuning."""
2
+
3
+ __version__ = "0.1.0"