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

Change consts to enums #8409

Merged
merged 30 commits into from
Dec 5, 2020
Merged

Change consts to enums #8409

merged 30 commits into from
Dec 5, 2020

Conversation

jmythms
Copy link
Contributor

@jmythms jmythms commented Dec 3, 2020

Pull request overview

Changing conts to enums.

@jmythms jmythms marked this pull request as ready for review December 3, 2020 21:48
@jmythms jmythms requested a review from mitchute December 3, 2020 21:48
@Myoldmopar
Copy link
Member

So....why is CI still wanting to run 5ZoneAirCooledConvCoefPIU in this branch? That file was deleted in #8396. Oh I see, the IDF was deleted but the CMakeLists entry was left in. OK, I'm making that tweak in this branch locally and I'll push it up then CI will report back all green and this can go in. Thanks @jmythms !

@jmythms
Copy link
Contributor Author

jmythms commented Dec 4, 2020

Thank you very much!

@jmythms
Copy link
Contributor Author

jmythms commented Dec 4, 2020

Messed up here, did not mean to push to this branch. Reverting commits.

@Myoldmopar Myoldmopar added the Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring label Dec 4, 2020
@Myoldmopar
Copy link
Member

@jmythms sorry for the confusion, the IDF actually should've stayed removed. It was removed in a different PR but the entry in testfiles/CMakeLists.txt was accidentally left in. The correct action should've just been to delete this line. I'll take care of it.

@jmythms
Copy link
Contributor Author

jmythms commented Dec 4, 2020

Thank you for the help and for explaining it, Edwin. I'll check for it next time if it happens again.

Copy link
Member

@Myoldmopar Myoldmopar left a comment

Choose a reason for hiding this comment

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

OK, this looks almost ready. I'm not sure why a couple fixes were backed out here but I'll fix that and push. If it's green after that this can go in.

@@ -16,7 +16,7 @@ jobs:
python-version: 3.7

- name: Set up LaTeX
run: sudo apt update && sudo apt install -y texlive texlive-xetex texlive-science
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be reverted back as well, I'm not sure how that happened.

@@ -81,8 +81,8 @@ namespace OutputProcessor {
extern int const ReportVDD_Yes; // Report the variable dictionaries in "report format"
extern int const ReportVDD_IDF; // Report the variable dictionaries in "IDF format"

extern Real64 const MinSetValue;
extern Real64 const MaxSetValue;
constexpr Real64 MinSetValue(99999999999999.0);
Copy link
Member

Choose a reason for hiding this comment

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

Yay for constexprs!

@@ -705,7 +705,7 @@ namespace PluginManagement {

for (unsigned long itemNum = 0; itemNum < numVals; itemNum++) {
PyObject *item = PyList_GetItem(pyth_val, itemNum);
if (PyUnicode_Check(item)) { // NOLINT(hicpp-signed-bitwise) -- something inside Python code causes warning
if PyUnicode_Check(item) { // NOLINT(hicpp-signed-bitwise) -- something inside Python code causes warning
Copy link
Member

Choose a reason for hiding this comment

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

Yeah something went wrong here, I don't know why these fixes are missing here.

@@ -35,7 +35,6 @@ ADD_SIMULATION_TEST(IDF_FILE 4ZoneWithShading_Simple_1.idf EPW_FILE USA_CO_Golde
ADD_SIMULATION_TEST(IDF_FILE 4ZoneWithShading_Simple_2.idf EPW_FILE USA_CO_Golden-NREL.724666_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE 5ZoneAirCooled.idf EPW_FILE USA_CO_Golden-NREL.724666_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE 5ZoneAirCooledConvCoef.idf EPW_FILE USA_CO_Golden-NREL.724666_TMY3.epw)
ADD_SIMULATION_TEST(IDF_FILE 5ZoneAirCooledConvCoefPIU.idf EPW_FILE USA_CO_Golden-NREL.724666_TMY3.epw)
Copy link
Member

Choose a reason for hiding this comment

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

This is good though.

@Myoldmopar
Copy link
Member

I'll let CI have one final pass over these changes, but they look good locally.

@Myoldmopar Myoldmopar removed the request for review from mitchute December 5, 2020 12:44
@Myoldmopar
Copy link
Member

All good here; this will merge in a few minutes when CI is done. Thanks for this @jmythms.

@Myoldmopar Myoldmopar merged commit d66e036 into develop Dec 5, 2020
@Myoldmopar Myoldmopar deleted the jermy-const-cleanups branch December 5, 2020 15:28
@jmythms
Copy link
Contributor Author

jmythms commented Dec 5, 2020

Thank you @Myoldmopar !

@mjwitte mjwitte changed the title Jermy const cleanups Change consts to enums Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Includes code changes that don't change the functionality of the program, just perform refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants