-
Notifications
You must be signed in to change notification settings - Fork 396
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
sqlite TimestepType is backwards #7342
Comments
Instead of just fixing the method, I propose to use a single enum throughout energyplus to avoid this kind of mistake down the line and make it clearer as to what's happening. This is going to involve a lot of file changes, but I'm willing to give it a shot. |
Yes, that would be good to do at some point. But given where we are in the release cycle, it seems best to just fix this and plan for an enum pass through the code shortly after the next release when we have fewer open PRs. |
@mjwitte I did see your comment, but when I was already about 70% in adding the enum... Tests results in #7415 seem pretty clean though, so hopefully this won't be too much of a hassle reviewing. |
Well, we'll have to see how it looks. @Myoldmopar will make the call whether this can go forward now or wait until after release. |
Fix #7342 - Change TimeStepType to be an enum rather an int and correct sql behavior
Issue overview
Noticed in various sqlite tables that
TimestepType
is backwards. Zone timestep variables are tagged as "HVAC System" and HVAC variables are tagged as "Zone".SQLite::timestepTypeName is where the error is.
OutputProcessor::ValidateIndexType shows the correct mapping. 1=Zone, 2=HVAC.
Details
Some additional details for this issue (if relevant):
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
The text was updated successfully, but these errors were encountered: