-
Notifications
You must be signed in to change notification settings - Fork 389
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
Use RunPeriod names in error messages and use right array for SizingPeriod:WeatherFileXXX #7068
Use RunPeriod names in error messages and use right array for SizingPeriod:WeatherFileXXX #7068
Conversation
… throw before that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good. I'm going to pull it locally and merge develop into it. I'll run tests and play with it a little and if all is well I'll get it merged in.
@@ -1874,7 +1874,7 @@ namespace OutputReportPredefined { | |||
pdchFanPwrPerFlow = newPreDefColumn(pdstFan, "Rated Power Per Max Air Flow Rate [W-s/m3]"); | |||
pdchFanMotorIn = newPreDefColumn(pdstFan, "Motor Heat In Air Fraction"); | |||
pdchFanEnergyIndex = newPreDefColumn(pdstFan, "Fan Energy Index"); | |||
pdchFanEndUse = newPreDefColumn(pdstFan, "End Use"); | |||
pdchFanEndUse = newPreDefColumn(pdstFan, "End Use Subcategory"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good change.
@@ -6051,6 +6051,8 @@ namespace WeatherManager { | |||
|
|||
++Count; | |||
// Loop = RP + Ptr; | |||
// Note JM 2018-11-20: IDD allows blank name, but input processor will create a name such as "RUNPERIOD 1" anyways | |||
// which is fine for our reporting below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like the date being in here, but it's not enough to hold up the whole PR if nothing else needs changing.
@@ -6307,7 +6309,7 @@ namespace WeatherManager { | |||
} else if (UtilityRoutines::SameString(cAlphaArgs(8), "YES")) { | |||
RunPeriodInput(Loop).actualWeather = true; | |||
} else { | |||
ShowSevereError(cCurrentModuleObject + ": object #" + TrimSigDigits(Loop) + cAlphaFieldNames(8) + " invalid [" + cAlphaArgs(8) + ']'); | |||
ShowSevereError(cCurrentModuleObject + ": object=" + RunPeriodInput(Loop).title + cAlphaFieldNames(8) + " invalid [" + cAlphaArgs(8) + ']'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good change!
EXPECT_TRUE(compare_err_stream(error_string, true)); | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look like they cover your fixes. 👍
Does this still not require that RunPeriod objects have names? If not, I do not agree that it is a fix for my issue. |
Good call, error messages look nicer now, but your issue is different than what this addresses. |
Local build was successful, unit test suite passes, ran a sampling of integration tests, everything is great. I'm going to go ahead and merge this in. I'll close #6949 and #7067 as complete and comment on #6937 saying it was partially addressed. We should have a separate branch to fix #6937 as it will take transition rules. |
Pull request overview
RunPeriod
a required field. By default the InputProcessor will attribute a name such as "RUN PERIOD 1" when it's empty.Regardless or whether the name (in the code
title
) is autogenerated or not, use that in the Warning/Severe messages.Bonus: Fix #6949: really trivial so not worth adding it to another PR
Work Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Review Checklist
This will not be exhaustively relevant to every PR.