|
1 | 1 | """Example of using COMcheck API client compliance, requirements, and report functions. |
2 | 2 |
|
3 | | -UA path vs. full compliance |
4 | | ----------------------------- |
| 3 | +UA path vs. ASHRAE 90.1 Compliance Check |
| 4 | +---------------------------------------- |
5 | 5 | ASHRAE 90.1-based codes (and state codes derived from it) require TWO checks to |
6 | 6 | establish full envelope compliance: |
7 | 7 |
|
|
15 | 15 | complete code compliance determination is needed. |
16 | 16 |
|
17 | 17 | If your project only needs to verify the envelope trade-off path, Example 1 is |
18 | | -sufficient. If you need a full compliance determination (e.g. to generate an |
| 18 | +sufficient. If you need an ASHRAE 90.1 Compliance Check determination (e.g. to generate an |
19 | 19 | official report), run Example 1 first; if it passes, proceed with Example 6. |
20 | 20 | """ |
21 | 21 |
|
|
67 | 67 | if report: |
68 | 68 | print(f"Saved report to ./reports/{report['fileName']}") |
69 | 69 |
|
70 | | -# Example 6: Full compliance check (ASHRAE 90.1-based codes) |
| 70 | +# Example 6: ASHRAE 90.1 Compliance Check (ASHRAE 90.1-based codes) |
71 | 71 | # For a complete compliance determination, first verify the UA path passes, |
72 | 72 | # then run the full simulation. |
73 | 73 | ua_result = client.check_UA_compliance(project) |
|
80 | 80 | status = client.get_simulation_status(session_id) |
81 | 81 | if status["status"] == SimulationStatus.SUCCESS: |
82 | 82 | result = client.get_simulation_result(session_id) |
83 | | - print(f"Full compliance result: {result}") |
| 83 | + print(f"ASHRAE 90.1 Compliance Check result: {result}") |
84 | 84 | break |
85 | 85 | if status["status"] == SimulationStatus.FAILED: |
86 | 86 | print(f"Simulation failed: {status.get('message')}") |
|
0 commit comments