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

Hotfix #10961 - New E+ 25.1 warnings for Schedule:Year + #10955 #10966

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jmarrec
Copy link
Contributor

@jmarrec jmarrec commented Mar 4, 2025

Pull request overview

GetScheduleTypeNum returns 0 for the first one found (vector is 0-indexed)

Pull Request Author

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies

Reviewer

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • 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
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@jmarrec jmarrec added Defect Includes code to repair a defect in EnergyPlus DoNotPublish Includes changes that shouldn't be reported in the changelog labels Mar 4, 2025
@jmarrec jmarrec requested review from shorowit and amirroth March 4, 2025 11:19
@jmarrec jmarrec self-assigned this Mar 4, 2025
Comment on lines +97 to +102
for (int i = 0; i < (int)s_sched->scheduleTypes.size(); ++i) {
if (s_sched->scheduleTypes[i]->Name == name) {
return i;
}
}
return SchedNum_Invalid;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Return the same constexpr int for clarity.

And use braces so we can set a breakpoint if we want to. (we should tell clang-format to always do that IMHO)

@@ -1094,7 +1097,7 @@ namespace Sched {
if (lAlphaBlanks(2)) {
ShowWarningEmptyField(state, eoh, cAlphaFields(2));
ShowContinueError(state, "Schedule will not be validated.");
} else if ((sched->schedTypeNum = GetScheduleTypeNum(state, Alphas(2))) == 0) {
} else if ((sched->schedTypeNum = GetScheduleTypeNum(state, Alphas(2))) == SchedNum_Invalid) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix for Schedule:Year

@jmarrec jmarrec changed the title Hotfix #10961 - New E+ 25.1 warnings for Schedule:Year Hotfix #10961 - New E+ 25.1 warnings for Schedule:Year + #10955 Mar 4, 2025
@@ -3119,8 +3119,7 @@ void OpenOutputTabularFile(EnergyPlusData &state)
open_tbl_stream(state, iStyle, state.dataStrGlobals->outputTblXmlFilePath, state.files.outputControl.tabular);
tbl_stream << "<?xml version=\"1.0\"?>\n";
tbl_stream << "<EnergyPlusTabularReports>\n";
tbl_stream << " <state.dataHeatBal->BuildingName>" << ConvertToEscaped(state.dataHeatBal->BuildingName)
<< "</state.dataHeatBal->BuildingName>\n";
tbl_stream << " <BuildingName>" << ConvertToEscaped(state.dataHeatBal->BuildingName) << "</BuildingName>\n";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

github-actions bot commented Mar 4, 2025

⚠️ Regressions detected on macos-14 for commit d597927

Regression Summary
  • ERR: 11
  • PERF_LOG: 1

Copy link

github-actions bot commented Mar 4, 2025

⚠️ Regressions detected on macos-14 for commit 0ca4719

Regression Summary
  • ERR: 11
  • PERF_LOG: 1

Copy link

github-actions bot commented Mar 4, 2025

⚠️ Regressions detected on macos-14 for commit 2375acb

Regression Summary
  • ERR: 11
  • PERF_LOG: 1

Copy link

github-actions bot commented Mar 4, 2025

⚠️ Regressions detected on macos-14 for commit 4a0ce8a

Regression Summary
  • ERR: 11
  • PERF_LOG: 1

@jmarrec
Copy link
Contributor Author

jmarrec commented Mar 4, 2025

diffs in AtticRoof_RadiantBarriers

eplusout.err

--- 
+++ 
@@ -1,46 +1,4 @@
 -line skipped--   ** Warning ** ProcessScheduleInput: Schedule:Year = LIGHTING SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = CLOTHES DRYER EXHAUST SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = CLOTHES DRYER SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = CLOTHES WASHER SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = COOKING RANGE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = COOLING SEASON SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = DHW FIXTURES SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = DISHWASHER SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = EXTERIOR LIGHTING SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = FRIDGE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = HEATING SEASON SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = MISC PLUG LOADS SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = MISC TV SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
-   ** Warning ** ProcessScheduleInput: Schedule:Year = OCCUPANTS SCHEDULE
-   **   ~~~   ** Schedule Type Limits Name = FRACTIONAL, item not found.
-   **   ~~~   ** Schedule will not be validated.
    ************* Note that the following warning(s) may/will occur if you have not enclosed your zone completely.
    ** Warning ** Entered Zone Volumes differ from calculated zone volume(s).
    **   ~~~   ** ...use Output:Diagnostics,DisplayExtraWarnings; to show more details on individual zones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Includes code to repair a defect in EnergyPlus DoNotPublish Includes changes that shouldn't be reported in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New E+ 25.1 warnings for schedules unintended xml output
3 participants