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

Support single building DES templates #670

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

nllong
Copy link
Member

@nllong nllong commented Oct 25, 2024

Any background context you want to provide?

For the constant and variable DES systems, if there was a single building, then the model would fail to build.

What does this PR accomplish?

If the jsonpath returns a dict, then it will assume it is a single building. This is not common, but needed for the aggregated load analysis.

How should this be manually tested?

unit tests should pass

What are the relevant tickets?

n/a

Screenshots (if appropriate)

@nllong nllong requested a review from vtnate October 25, 2024 01:40
@@ -36,7 +36,7 @@ geojson = "^3.1"
jinja2 = "^3.1.2"
jsonpath-ng = "~1.6"
jsonschema = "~4.20"
modelica-builder = "^0.5.1"
modelica-builder = "^0.5.2rc3"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should release 0.5.2 soon-ish

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go so far as to say that if we merge my open PRs, we should go to 0.6.0. Agreed that should happen soon.

Copy link
Contributor

@vtnate vtnate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. I was expecting the test to check behavior when there is only a single building in the sys-param though, since handling that appears to be what the new code supports.

pyproject.toml Show resolved Hide resolved
@vtnate vtnate merged commit 1ae5ae8 into develop Oct 25, 2024
10 checks passed
@vtnate vtnate deleted the support-single-building-des branch October 25, 2024 16:35
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