Skip to content

Commit

Permalink
Update defaultConfig.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlassere authored Mar 19, 2024
1 parent a785ab2 commit b52af75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions afc/defaultConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def get_facade_config(parameter, facade_type='ec-71t', window_area=2.56*2.78):

def get_radiance_config(parameter, regenerate=False, wwr=0.4, latitude=37.7, longitude=122.2,
view_orient=0, timezone=120, orient=0, elevation=100, width=3.05,
depth=4.57, height=3.35, windows='.38 .22 2.29 .85', '.38 1.07 2.29 .85', '.38 1.98 2.29 .51'):
depth=4.57, height=3.35,
windows=['.38 .22 2.29 .85', '.38 1.07 2.29 .85', '.38 1.98 2.29 .51']):
"""Default configuration for radiance.
Default window parameters for 71T.
Expand Down Expand Up @@ -109,7 +110,8 @@ def get_radiance_config(parameter, regenerate=False, wwr=0.4, latitude=37.7, lon
for wz, window in enumerate(windows):
parameter['radiance']['dimensions'][f'window{wz+1}'] = window
else:
raise ValueError(f'Number of window zones {parameter["facade"]["windows"]} does not match window dimensions {windows}.')
raise ValueError(f'Number of window zones
{parameter["facade"]["windows"]} does not match window dimensions {windows}.')

# paths
filestruct, rad_config = get_config(parameter['facade']['type'],
Expand Down Expand Up @@ -251,7 +253,7 @@ def default_parameter(tariff_name='e19-2020', hvac_control=True,
width = ft_to_m(room_width),
depth = ft_to_m(room_depth),
height = ft_to_m(room_height),
windows='.38 .22 2.29 .85', '.38 1.07 2.29 .85', '.38 1.98 2.29 .51')
windows=['.38 .22 2.29 .85', '.38 1.07 2.29 .85', '.38 1.98 2.29 .51'])

# setup occupant
parameter = get_occupant_config(parameter,
Expand Down

0 comments on commit b52af75

Please sign in to comment.