Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Addresses #4182, provide OS SDK/API support for the EnergyPlus "Generator:WindTurbine" object #4192

Merged
merged 28 commits into from
Feb 5, 2021

Conversation

joseph-robertson
Copy link
Collaborator

@joseph-robertson joseph-robertson commented Jan 27, 2021

Pull request overview

Please read OpenStudio Pull Requests to better understand the OpenStudio Pull Request protocol.

Pull Request Author

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Model API Changes / Additions
  • Any new or modified fields have been implemented in the EnergyPlus ForwardTranslator (and ReverseTranslator as appropriate)
  • Model API methods are tested (in src/model/test)
  • EnergyPlus ForwardTranslator Tests (in src/energyplus/Test)
  • If a new object or method, added a test in NREL/OpenStudio-resources: Add Link
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • Checked behavior in OpenStudioApplication, adjusted policies as needed (src/openstudio_lib/library/OpenStudioPolicy.xml)
  • Verified that C# bindings built fine on Windows, partial classes used as needed, etc.
  • All new and existing tests passes
  • If methods have been deprecated, update rest of code to use the new methods

Labels:

  • If change to an IDD file, add the label IDDChange
  • If breaking existing API, add the label APIChange
  • If deemed ready, add label Pull Request - Ready for CI so that CI builds your PR

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified

@joseph-robertson joseph-robertson added this to the OpenStudio SDK 3.2.0 milestone Jan 27, 2021
@joseph-robertson joseph-robertson self-assigned this Jan 27, 2021
@joseph-robertson joseph-robertson added the Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. label Jan 27, 2021
@jmarrec
Copy link
Collaborator

jmarrec commented Jan 29, 2021

@joseph-robertson I left some comments, and some - I think - required changes (making one field required for eg, removing the creation of the ECLD in the Ctor too). Address what you think makes sense, just mark comments resolved for what doesn't (I left everything so you see them, even those where I was wrong such as availability schedule). There should be very minimal changes before this can drop in as it's 95% there!

To answer the question in the OP:

Which, if any, of the following 7 should be passed into the ctor (or should they get values from the docs, which is what this PR current does)

I think your current implemenation is fine.

@jmarrec
Copy link
Collaborator

jmarrec commented Feb 4, 2021

Tested that OS-res test in NREL/OpenStudio-resources#128 is still passing. This can merge and NREL/OpenStudio-resources#128 as well, good job @joseph-robertson !

@tijcolem tijcolem merged commit 1de7dfe into develop Feb 5, 2021
@tijcolem tijcolem deleted the issue-4182 branch February 5, 2021 17:26
jmarrec added a commit that referenced this pull request Mar 3, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
component - Model Enhancement Request Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide OS SDK/API support for the EnergyPlus "Generator:WindTurbine" object
4 participants