Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to 3.1.0 SDK - punt on new shading controls UI #240

Merged
merged 4 commits into from
Sep 19, 2020

Conversation

macumber
Copy link
Collaborator

I feel bad since you put a lot of effort into moving the shading controls UI @jmarrec

However, I feel that shading and daylighting controls in EnergyPlus are fundamentally broken. I think we should push to correct that implementation at the EnergyPlus and/or OpenStudio level before trying to make a new UI.

If we do make a new UI, I think that would be a larger new feature that would need support from the coalition or others. I created #239 and linked to a Google doc to play with ideas.

My suggestion is that we get our proposal on refactoring these controls ready, then bring to DOE/NREL and see if they can work with us on refactoring at the EnergyPlus and/or OpenStudio level

@macumber macumber requested a review from jmarrec September 19, 2020 17:32
// temporary workaround, see Shading Control Enhancements #239
std::function<bool(model::SubSurface*, const model::ShadingControl&)> setter(
[](model::SubSurface* t_surface, const model::ShadingControl& t_arg) {
return const_cast<model::ShadingControl&>(t_arg).addSubSurface(*t_surface);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

const_cast is ugly but ok for now

@macumber macumber merged commit 485c3d2 into develop Sep 19, 2020
@macumber macumber deleted the 235_UpdateSDK_310_punt_shading_controls branch September 19, 2020 23:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants