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

#4894 - setAmbientTemperatureSchedule and setAmbientAirVelocitySchedule setter for PipeIndoor do not work #4901

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented May 31, 2023

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: 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

unknown file: Failure
C++ exception with description "/Users/julien/Software/Others/OpenStudio/src/model/ScheduleTypeRegistry.cpp@68 : No 'Ambient Temperature Schedule' Schedule is registered for class PipeIndoor." thrown in the test body.
@jmarrec jmarrec added severity - Minor Bug component - HVAC component - Model Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. labels May 31, 2023
@jmarrec jmarrec self-assigned this May 31, 2023
Comment on lines +80 to +82
EXPECT_TRUE(pipeIndoor.setAmbientTemperatureSchedule(ambientTemperatureSchedule));
ASSERT_TRUE(pipeIndoor.ambientTemperatureSchedule());
EXPECT_EQ(ambientTemperatureSchedule, pipeIndoor.ambientTemperatureSchedule().get());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without fix:

[ RUN      ] ModelFixture.PipeIndoor_GettersSetters
unknown file: Failure
C++ exception with description "/Users/julien/Software/Others/OpenStudio/src/model/ScheduleTypeRegistry.cpp@68 : No 'Ambient Temperature Schedule' Schedule is registered for class PipeIndoor." thrown in the test body.
[  FAILED  ] ModelFixture.PipeIndoor_GettersSetters (4 ms)

Comment on lines +343 to +344
{"PipeIndoor", "Ambient Temperature Schedule", "ambientTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble()},
{"PipeIndoor", "Ambient Air Velocity Schedule", "ambientAirVelocitySchedule", true, "Velocity", 0.0, OptionalDouble()},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actual fix for #4894

@jmarrec jmarrec added this to the OpenStudio SDK 3.7.0 milestone May 31, 2023
@jmarrec jmarrec merged commit f731007 into develop Jun 29, 2023
2 checks passed
@jmarrec jmarrec deleted the 4894_PipeIndoor branch June 29, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component - HVAC component - Model Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. severity - Minor Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setAmbientTemperatureSchedule and setAmbientAirVelocitySchedule setter for PipeIndoor do not work
2 participants