-
Notifications
You must be signed in to change notification settings - Fork 58
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
add exterior lighting test function #1552
Conversation
reorganize the exterio lighting function to split the user data reading from the PRM data setting.
# 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
reorganize the exterio lighting function to split the user data reading from the PRM data setting.