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

Height of shading objects is incorrect #4770

Merged

Conversation

ggartside
Copy link
Collaborator

@ggartside ggartside commented Dec 19, 2022

Fixes 4664: floor_to_ceiling_height for Shading objects is not respected in the floorspace reverse translator

This what the model should look like
image

and this is what the model currently looks like
image

Pull request overview

Fixes issue 4764 - Shading Floorspace objects are not converted to ShadingGroups correctly when the Shading object specifies an override for the height of the shading object

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: Add Link
  • 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

@ggartside ggartside changed the title corrected makefile Height of imported shading objects is incorrect Dec 20, 2022
@ggartside ggartside changed the title Height of imported shading objects is incorrect Height of shading objects is incorrect Dec 21, 2022
@ggartside ggartside requested a review from jmarrec January 4, 2023 22:18
@jmarrec
Copy link
Collaborator

jmarrec commented Jan 5, 2023

@ggartside To facilitate review, could you try to separate your changes into distinct commits, ideally in a TDD fashion (add test first, then fix, you can always rebase and reorder commits at the end)

  • Add a test
  • (do renames)
  • fix

I have done a rebase and reauthored commits to attribute them to you this time for convenience. (I'm pushing the test now and letting CI to run so we see the failures. Then I'll push the fix part)

Also, could you post a picture showing the before/after like you did in #4764 ?

@jmarrec jmarrec force-pushed the 4764-Height-Of-Shading-objects-floorspace-reverse-translator branch from 557ad2b to dabd3ec Compare January 5, 2023 11:38
@jmarrec jmarrec added Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. component - Geometry Translator labels Jan 5, 2023
@tijcolem tijcolem merged commit 87056a8 into develop Jan 31, 2023
@tijcolem tijcolem deleted the 4764-Height-Of-Shading-objects-floorspace-reverse-translator branch January 31, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component - Geometry Translator 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.

floor_to_ceiling_height for Shading objects is not respected in the floorspace reverse translator
4 participants