Skip to content
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

Open
wants to merge 5 commits into
base: addendum_d
Choose a base branch
from

Conversation

nealkruis
Copy link
Contributor

No description provided.

@nealkruis nealkruis self-assigned this Dec 20, 2024
@@ -216,7 +216,7 @@ Performance:
condenser_liquid_type:
Description: "Type of liquid in condenser"
Data Type: "{LiquidMixture}"
Required: "if condenser_type = LIQUID"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants