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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(annual): Change default occupancy to align with IES LM 83 23 #842

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions honeybee_radiance/postprocess/annual.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
def generate_default_schedule(weekday=None, weekend=None):
"""Create a list of 8760 values based on a daily schedule for weekend and weekday.

The default is set to align with IES LM 83 23, which assumes 8am-6pm for all
365 days of the year.

Args:
weekday: A list of 24 values for each hour of a weekday. The values can
be 0 or 1.
Expand All @@ -18,9 +21,10 @@ def generate_default_schedule(weekday=None, weekend=None):
List -- A list of 8760 values for the year.

"""
weekend = weekend or [0] * 24
weekend = weekend or \
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]
weekday = weekday or \
[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]
assert len(weekend) == 24, 'Weekend list should be 24 values.'
assert len(weekday) == 24, 'Weekend list should be 24 values.'
weekend = [0 if v == 0 else 1 for v in weekend]
Expand Down