Skip to content

Comments

Addresses #4615, wrap OutputControl:Table:Style and Output:SQLite#4625

Merged
jmarrec merged 36 commits intodevelopfrom
output-control
Jul 26, 2022
Merged

Addresses #4615, wrap OutputControl:Table:Style and Output:SQLite#4625
jmarrec merged 36 commits intodevelopfrom
output-control

Conversation

@joseph-robertson
Copy link
Collaborator

@joseph-robertson joseph-robertson commented Jul 19, 2022

Pull request overview

Pull Request Author

  • 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: Addresses #4615, wrap OutputControl:Table:Style and Output:SQLite OpenStudio-resources#171
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • 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 Enhancement Request component - Utilities Other Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. labels Jul 19, 2022
@joseph-robertson joseph-robertson self-assigned this Jul 19, 2022
@joseph-robertson joseph-robertson marked this pull request as ready for review July 22, 2022 19:36
Copy link
Collaborator

@jmarrec jmarrec left a comment

Choose a reason for hiding this comment

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

This is looking really good. I added a couple of minor suggestions.

tableStyle.setString(OutputControl_Table_StyleFields::ColumnSeparator, "HTML");
if (m_ipTabularOutput) {
tableStyle.setString(OutputControl_Table_StyleFields::UnitConversion, "InchPound");
boost::optional<model::OutputControlTableStyle> _tableStyle = model.getOptionalUniqueModelObject<model::OutputControlTableStyle>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

(No changes needed, but FYI if we end up making our IDD (or Ctor) use the same defaults as the FT, you could just call model.getUniqueModelObject() to instantiate the object as we operate on a copy of our model to begin with. This is maybe clearer this way though.)

Comment on lines +66 to +67
Model m;
ForwardTranslator ft;
Copy link
Collaborator

Choose a reason for hiding this comment

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

(could use the same ft and model).

@ci-commercialbuildings
Copy link
Collaborator

ci-commercialbuildings commented Jul 26, 2022

@jmarrec jmarrec merged commit 7f65cfd into develop Jul 26, 2022
@jmarrec jmarrec deleted the output-control branch July 26, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - Utilities Other Enhancement Request IDDChange 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.

Wrap OutputControl:Table:Style and Output:SQLite

3 participants