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

add exterior lighting test function #1552

Merged

Conversation

weilixu
Copy link
Collaborator

@weilixu weilixu commented Aug 1, 2023

reorganize the exterio lighting function to split the user data reading from the PRM data setting.

reorganize the exterio lighting function to split the user data reading from the PRM data setting.
@weilixu weilixu added the AppendixG Methods to enable the Appendix G model workflow label Aug 1, 2023
@weilixu weilixu requested a review from lymereJ August 1, 2023 23:01
@weilixu weilixu self-assigned this Aug 3, 2023
# Update existing exterior lights object: control, schedule, power
ext_lights_obj.setControlOption('AstronomicalClock')
ext_lights_obj.setSchedule(model.alwaysOnDiscreteSchedule)
ext_lights_obj.setMultiplier(1)
ext_lights_def = ext_lights_obj.exteriorLightsDefinition
ext_lights_def.setDesignLevel(ext_ltg_pwr)
ext_ltg_pwr = get_additional_property_as_double(ext_lights_obj, 'design_level', 0.0)
if ext_ltg_pwr > 0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a chance that ext_ltg_pwr be 0? If so, should this be greater or equal to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are correct. it seems the ext_ltg_pwr is well protected from all the functions to be sure it is handled as 0.0 when failed.

In that case, we assume 0.0 and issue a warning. I will add these pieces in the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Address comments

…andards into appx_g/enhancement/apply_baseline_exterior_lighting

# Conflicts:
#	lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.Model.rb
@weilixu weilixu merged commit 41e5dc9 into AppendixG_Dev Aug 7, 2023
0 of 2 checks passed
@weilixu weilixu mentioned this pull request Sep 22, 2023
16 tasks
@weilixu weilixu deleted the appx_g/enhancement/apply_baseline_exterior_lighting branch February 11, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AppendixG Methods to enable the Appendix G model workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants