Skip to content

Conversation

@joseph-robertson
Copy link
Collaborator

Pull request overview

  • Fixes #ISSUENUMBERHERE (IF THIS IS A DEFECT)

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

@joseph-robertson joseph-robertson self-assigned this Aug 25, 2025
@joseph-robertson joseph-robertson added Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. IDDChange labels Aug 25, 2025
@joseph-robertson joseph-robertson mentioned this pull request Aug 25, 2025
26 tasks
@shorowit
Copy link
Contributor

Thanks for this!

@ci-commercialbuildings
Copy link
Collaborator

ci-commercialbuildings commented Aug 27, 2025

CI Results for 8e5857b:

@joseph-robertson joseph-robertson marked this pull request as ready for review October 10, 2025 18:43
Comment on lines +1418 to +1428
N3, \field Temperature Multiplier
\note If calculation method is Schedule, this input field is ignored.
\type real
\units dimensionless
\required-field
\minimum 0
N4; \field Temperature Offset
\note If calculation method is Schedule, this input field is ignored.
\type real
\units deltaC
\required-field
Copy link
Collaborator

@jmarrec jmarrec Oct 20, 2025

Choose a reason for hiding this comment

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

default 1 and default 0 (respectively) replaced by required-field: good

Comment on lines +4648 to +4650
EXPECT_TRUE(swmt.isEmpty(4)); // Maximum Difference In Monthly Average Outdoor Air Temperatures
EXPECT_EQ(1.0, swmt.getDouble(5).get()); // Temperature Multiplier
EXPECT_EQ(0.0, swmt.getDouble(6).get()); // Temperature Offset
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok

std::string update_3_7_0_to_3_8_0(const IdfFile& idf_3_7_0, const IddFileAndFactoryWrapper& idd_3_8_0);
std::string update_3_8_0_to_3_9_0(const IdfFile& idf_3_8_0, const IddFileAndFactoryWrapper& idd_3_9_0);
std::string update_3_9_0_to_3_10_0(const IdfFile& idf_3_9_0, const IddFileAndFactoryWrapper& idd_3_10_0);
std::string update_3_10_0_to_3_10_1(const IdfFile& idf_3_10_0, const IddFileAndFactoryWrapper& idd_3_10_1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should probably have done that on the v25.2.0-IOFreeze brnach, I hope this doesn't create conflicts too often.

Comment on lines +9768 to +9778
auto iddObject = idd_3_10_1.getObject(iddname);
IdfObject newObject(iddObject.get());

for (size_t i = 0; i < object.numFields(); ++i) {
if ((value = object.getString(i))) {
newObject.setString(i, value.get());
}
}

newObject.setDouble(5, 1.0);
newObject.setDouble(6, 0.0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

Comment on lines +208 to +211
ok = setTemperatureMultiplier(1.0);
OS_ASSERT(ok);
ok = setTemperatureOffset(0.0);
OS_ASSERT(ok);
Copy link
Collaborator

Choose a reason for hiding this comment

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

all good

Comment on lines +62 to +63
siteWater.setTemperatureMultiplier(1.2);
siteWater.setTemperatureOffset(-0.5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

These technically return bool, so you should test that they return true. ANd test that siteWater.setTemperatureMultiplier(-10.0) fails.

Don't care that much, just being thorough though.

@jmarrec jmarrec merged commit 1b5c1e4 into v25.2.0-IOFreeze Oct 20, 2025
1 check failed
@jmarrec jmarrec deleted the v25.2.0-IOFreeze-mains branch October 20, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants