Skip to content

Minimal Fix for #4247 - Enforce name unicity in ModeObjects by adding \required-field to name#4248

Merged
tijcolem merged 6 commits intodevelopfrom
4247_iddFixes
Apr 1, 2021
Merged

Minimal Fix for #4247 - Enforce name unicity in ModeObjects by adding \required-field to name#4248
tijcolem merged 6 commits intodevelopfrom
4247_iddFixes

Conversation

@jmarrec
Copy link
Copy Markdown
Collaborator

@jmarrec jmarrec commented Mar 18, 2021

Pull request overview

Minimal Fix #4247 - Enforce name unicity in ModeObjects by adding \required-field to name

Note: Since I needed to do that for the UtilityCost:XXX which are present in our IDD though they aren't wrapped in the SDK, I aligned the IDDs with the E+ IDD and made some modifications like adding \required-field where it made sense. I would say now would be a good time to actually wrap these objects.

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

jmarrec added 5 commits March 18, 2021 10:21
…had to add \required-field on name, so I chose to upgrade the IDD)

Now would be a good time to wrap these objects...
…'Name' field except Output:Meter

cf #4247 (comment) for script used and objects names
@jmarrec jmarrec added component - Model component - Utilities Other Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. labels Mar 18, 2021
@shorowit
Copy link
Copy Markdown
Contributor

I tested the Ubuntu 18.04 build above and confirmed that it fixes the issue. Thanks @jmarrec!

@tijcolem
Copy link
Copy Markdown
Collaborator

looks great! Windows CI (as usual) was struggling a bit here so just replaying the build and to verify and will merge once done.

@tijcolem tijcolem merged commit d4dbd61 into develop Apr 1, 2021
@tijcolem tijcolem deleted the 4247_iddFixes branch April 1, 2021 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - Model component - Utilities Other 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.

OS v3.2 UnitarySystem FT regression?

4 participants