Open
Conversation
rraustad
reviewed
Feb 27, 2026
| if (Util::IsNameEmpty(state, state.dataIPShortCut->cAlphaArgs(1), state.dataHeatBalMgr->CurrentModuleObject, ErrorsFound)) { | ||
| if (state.dataIPShortCut->cAlphaArgs(1).empty()) { | ||
| continue; | ||
| } |
Collaborator
There was a problem hiding this comment.
Don't need this check because:
Zone,
A1 , \field Name
\required-field
This test:
Zone,
, !- Name
0, !- Direction of Relative North {deg}
gives this error from the InputProcessor:
** Severe ** <root>[Zone] - Object name is required and cannot be blank or whitespace
rraustad
reviewed
Feb 27, 2026
| if (Util::IsNameEmpty(state, cAlphas(1), CurrentModuleObject, localErrorsFound)) { | ||
| if (cAlphas(1).empty()) { | ||
| continue; | ||
| } |
Collaborator
There was a problem hiding this comment.
NodeList,
A1 , \field Name
\required-field
rraustad
reviewed
Feb 27, 2026
| if (Util::IsNameEmpty(state, s_ipsc->cAlphaArgs(1), s_ipsc->cCurrentModuleObject, ErrorsFound)) { | ||
| if (s_ipsc->cAlphaArgs(1).empty()) { | ||
| continue; | ||
| } |
Collaborator
There was a problem hiding this comment.
This one should be required (because it is checked as such) but it's not so this is OK. I suspect all object names should be required-field but there may be exceptions. i.e., be careful which one of these checks get deleted. I always check the idd when adding/removing input checks.
PhotovoltaicPerformance:Simple,
A1 , \field Name
\reference PVModules
Collaborator
There was a problem hiding this comment.
The next 2 are OK as-is (Name is not a required field).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request overview
Reviewing PR #11411 prompted me to look at UtilityRoutines, where it appears we have a number of obsolete functions. This PR cleans these out in lieu of better approaches.
VerifyNameI think nearly all of this is handled already by the epJSON schema, and whatever is left can be handled by the.empty()string method.Description of the purpose of this PR
Pull Request Author
Reviewer