-
Notifications
You must be signed in to change notification settings - Fork 16
ASHRAE Guideline 36, Section 4, Air-Side #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASHRAE Guideline 36, Section 4, Air-Side #332
Conversation
(_:relief rdf:type rdf:Alt | ||
rdf:_1 | ||
p:relief-damper | ||
brick:hasPoint p:bldg-static-pressure | ||
rdf:_2 | ||
p:relief-fan | ||
p:relief-fan-damper | ||
brick:hasPoint p:bldg-static-pressure ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the separate template in the original file, which didn't appear to work as intended in G36 because it's optional.
# compose on the ahu's 'name' | |
with-relief-damper: | |
body: > | |
@prefix p: <urn:___param___#> . | |
@prefix brick: <https://brickschema.org/schema/Brick#> . | |
p:name brick:hasPart p:relief-fan, p:relief-damper ; | |
brick:hasPoint p:sp-sensor . | |
p:relief-damper a brick:Exhaust_Damper . | |
optional: ["sp-sensor"] | |
dependencies: | |
- template: relief-fan | |
args: {"name": "relief-fan"} | |
- template: damper | |
args: {"name": "relief-damper"} | |
- template: https://brickschema.org/schema/Brick#Static_Pressure_Sensor | |
library: https://brickschema.org/schema/1.4/Brick | |
args: {"name": "sp-sensor"} |
( p:return-fan | ||
brick:hasPoint | ||
p:return-fan-reset | ||
p:return-fan-sa-flow | ||
p:return-fan-ra-flow | ||
p:return-fan-pressure | ||
p:bldg-static-pressure | ||
p:return-fan-exhaust-damper ) ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the separate template in the original file, which didn't appear to work as intended in G36 because it's optional.
with-return-fan: | |
body: > | |
@prefix p: <urn:___param___#> . | |
@prefix brick: <https://brickschema.org/schema/Brick#> . | |
p:name brick:hasPart p:return-fan ; | |
brick:hasPoint p:supply-air-flow, p:return-air-flow, p:sp-sensor . | |
p:relief-damper a brick:Exhaust_Damper . | |
optional: ["supply-air-flow", "return-air-flow", "sp-sensor"] | |
dependencies: | |
- template: return-fan | |
args: {"name": "return-fan"} | |
- template: damper | |
args: {"name": "relief-damper"} | |
- template: https://brickschema.org/schema/Brick#Static_Pressure_Sensor | |
library: https://brickschema.org/schema/1.4/Brick | |
args: {"name": "sp-sensor"} | |
- template: https://brickschema.org/schema/Brick#Supply_Air_Flow_Sensor | |
library: https://brickschema.org/schema/1.4/Brick | |
args: {"name": "supply-air-flow"} | |
- template: https://brickschema.org/schema/Brick#Return_Air_Flow_Sensor | |
library: https://brickschema.org/schema/1.4/Brick | |
args: {"name": "return-air-flow"} |
p:name a brick:Exhaust_Fan ; | ||
brick:hasPoint p:start_stop, p:status, p:zat . | ||
optional: ["zat"] | ||
p:name a brick:Fan ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to make the object here a brick:Fan
class instead of p:name a p:constant-speed-fan
(from components.yml
like the TTL file) because it failed test_library.py
. There are a couple/few cases where this may be convenient and might be worth revisiting during a future template discussion/refactor.
cls = <class 'buildingmotif.dataclasses.library._template_dependency'>, d = {'args': {'name': 'cav-fan'}}, dependent_library_name = 'guideline36'
@classmethod
def from_dict(
cls, d: Dict[str, Any], dependent_library_name: str
) -> "_template_dependency":
"""Creates a py:class:`_template_dependency` from a dictionary.
:param d: dictionary
:type d: Dict[str, Any]
:param dependent_library_name: library name
:type dependent_library_name: str
:return: the _template_dependency from the dict
:rtype: _template_dependency
"""
> template_name = d["template"]
E KeyError: 'template'
buildingmotif/dataclasses/library.py:63: KeyError
@gtfierro this is ready. Please specifically review the template body syntax. I think the CI test failure is unrelated and will fix in the
|
@MatthewSteen I've gone through the templates and I think they look good. The Some of the missing classes like the |
@gtfierro thanks. Should we update Brick to 1.4 in a separate PR? I've updated the templates here and will do the same in the base branch. |
Yes, I think that's the right move. I'll handle that momentarily |
@gtfierro are you ok with merging this into the base G36 branch? |
Yes! Sounds good to me. I can help fix some other validation issues this weekend |
Great! I'll merge and finalize in the base G36 branch. |
Clean up for #263.