-
Notifications
You must be signed in to change notification settings - Fork 2
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
Addendum d fixes required to pass validation of air-cooled chiller examples #64
base: addendum_d
Are you sure you want to change the base?
Conversation
@@ -216,7 +216,7 @@ Performance: | |||
condenser_liquid_type: | |||
Description: "Type of liquid in condenser" | |||
Data Type: "{LiquidMixture}" | |||
Required: "if condenser_type = LIQUID" |
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.
@TimMcDowell @tanaya-mankad this is just a syntactical limitation of the legacy schema code. The legacy schema-205 code was silently misinterpreting this. In 232, we may want to build in some flexibility here.
@@ -300,32 +300,32 @@ GridVariablesCooling: | |||
Data Type: "[Numeric][1..]" | |||
Units: "m3/s" | |||
Constraints: ">0.0" | |||
Required: "if condenser_type = LIQUID" |
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.
So far our conditional requirements have all relied on data elements in the same data group. If we want to refer to a data element in a parent (or other ancestor) data group, 232 will need to establish a syntax for doing so.
I've captured this in the Lattice repo: bigladder/lattice#48
@@ -300,32 +300,32 @@ GridVariablesCooling: | |||
Data Type: "[Numeric][1..]" | |||
Units: "m3/s" | |||
Constraints: ">0.0" | |||
Required: "if condenser_type = LIQUID" | |||
Required: False |
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.
For now, the only way around this is to make these not required for now. This is of course moot if we decide to move air-cooled and liquid cooled performance into separate maps.
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.
@tanaya-mankad the changes here were needed to make the JSON Schema work properly. Not sure if the additional collector
layer was needed for something else, but we should make sure we make Lattice consistent.
No description provided.