honeybee-radiance-postprocess 0.4.478__py2.py3-none-any.whl → 0.4.479__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- honeybee_radiance_postprocess/cli/well.py +10 -22
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/METADATA +1 -1
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/RECORD +7 -7
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/LICENSE +0 -0
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/WHEEL +0 -0
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/entry_points.txt +0 -0
- {honeybee_radiance_postprocess-0.4.478.dist-info → honeybee_radiance_postprocess-0.4.479.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,9 @@
|
|
1
1
|
"""honeybee-radiance-postprocess WELL commands."""
|
2
|
-
import json
|
3
2
|
import sys
|
4
3
|
import logging
|
5
|
-
import os
|
6
4
|
import click
|
7
5
|
|
8
6
|
from ..well.well import well_annual_daylight
|
9
|
-
from ..results.annual_daylight import AnnualDaylight
|
10
7
|
|
11
8
|
_logger = logging.getLogger(__name__)
|
12
9
|
|
@@ -21,6 +18,10 @@ def well():
|
|
21
18
|
'folder',
|
22
19
|
type=click.Path(exists=True, file_okay=False, dir_okay=True, resolve_path=True)
|
23
20
|
)
|
21
|
+
@click.argument(
|
22
|
+
'daylight-hours',
|
23
|
+
type=click.Path(exists=True, file_okay=True, dir_okay=False, resolve_path=True)
|
24
|
+
)
|
24
25
|
@click.option(
|
25
26
|
'--grids-filter', '-gf', help='A pattern to filter the grids.', default='*',
|
26
27
|
show_default=True
|
@@ -30,8 +31,7 @@ def well():
|
|
30
31
|
'files.', default='well_summary', show_default=True
|
31
32
|
)
|
32
33
|
def well_daylight(
|
33
|
-
folder,
|
34
|
-
use_shade_transmittance, sub_folder
|
34
|
+
folder, daylight_hours, grids_filter, sub_folder
|
35
35
|
):
|
36
36
|
"""Calculate credits for WELL L06.
|
37
37
|
|
@@ -46,27 +46,15 @@ def well_daylight(
|
|
46
46
|
folder: Results folder. This folder is an output folder of annual daylight
|
47
47
|
recipe. The daylight simulation must include aperture groups.
|
48
48
|
"""
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
and os.path.isfile(shade_transmittance_file)
|
53
|
-
and use_shade_transmittance
|
54
|
-
):
|
55
|
-
with open(shade_transmittance_file) as json_file:
|
56
|
-
shd_trans = json.load(json_file)
|
57
|
-
results = AnnualDaylight(folder)
|
58
|
-
# check if aperture groups are missing in json file
|
59
|
-
for light_path in results.light_paths:
|
60
|
-
if (not light_path in shd_trans and
|
61
|
-
light_path != '__static_apertures__'):
|
62
|
-
shd_trans[light_path] = shade_transmittance
|
63
|
-
shade_transmittance = shd_trans
|
49
|
+
with open(daylight_hours) as hourly_schedule:
|
50
|
+
daylight_hours = [int(float(v)) for v in hourly_schedule]
|
51
|
+
|
64
52
|
try:
|
65
53
|
well_annual_daylight(
|
66
|
-
folder, grids_filter=grids_filter, sub_folder=sub_folder
|
54
|
+
folder, daylight_hours, grids_filter=grids_filter, sub_folder=sub_folder
|
67
55
|
)
|
68
56
|
except Exception:
|
69
|
-
_logger.exception('Failed to generate
|
57
|
+
_logger.exception('Failed to generate WELL summary.')
|
70
58
|
sys.exit(1)
|
71
59
|
else:
|
72
60
|
sys.exit(0)
|
@@ -29,7 +29,7 @@ honeybee_radiance_postprocess/cli/translate.py,sha256=rwUjjDK_Ttjen4ooAMvugyDN5x
|
|
29
29
|
honeybee_radiance_postprocess/cli/two_phase.py,sha256=xA6ayPv26DM5fuMkLhBMYGklf_j5ymowmncwJGXRgo8,7034
|
30
30
|
honeybee_radiance_postprocess/cli/util.py,sha256=Be9cGmYhcV2W37ma6SgQPCWCpWLLLlroxRYN_l58kY0,4077
|
31
31
|
honeybee_radiance_postprocess/cli/viewfactor.py,sha256=kU36YRzLya5PReYREjTfw3zOcWKHYZjVlVclyuR7Cqk,5245
|
32
|
-
honeybee_radiance_postprocess/cli/well.py,sha256=
|
32
|
+
honeybee_radiance_postprocess/cli/well.py,sha256=A4i5scnWWOOwZFfC9vg8bUV2lOOJfbOb-HP8zCZy_ic,1888
|
33
33
|
honeybee_radiance_postprocess/ies/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
|
34
34
|
honeybee_radiance_postprocess/ies/lm.py,sha256=kHvwd2uT8Y-c2TjpvQzjLrWzwgayWjpzpbwS2S6cEvo,9570
|
35
35
|
honeybee_radiance_postprocess/ies/lm_schedule.py,sha256=ci58GXq2PntJ4yNUdI_x4UCRmq6KrLes-u7GeboX058,9954
|
@@ -42,9 +42,9 @@ honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=5zwrr4MNeHUebb
|
|
42
42
|
honeybee_radiance_postprocess/results/results.py,sha256=ABb_S8kDPruhGkDsfREXMg6K0p8FRhAZ3QIRUZCQPAI,54888
|
43
43
|
honeybee_radiance_postprocess/well/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
|
44
44
|
honeybee_radiance_postprocess/well/well.py,sha256=Troym2sdGMYyzW2MGuflCFr737eUWrDP6Pc-zju7LiA,21071
|
45
|
-
honeybee_radiance_postprocess-0.4.
|
46
|
-
honeybee_radiance_postprocess-0.4.
|
47
|
-
honeybee_radiance_postprocess-0.4.
|
48
|
-
honeybee_radiance_postprocess-0.4.
|
49
|
-
honeybee_radiance_postprocess-0.4.
|
50
|
-
honeybee_radiance_postprocess-0.4.
|
45
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
46
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/METADATA,sha256=h2VqYJPqoPBgguc10KFI5Z-qiOBNs27D0PMcfEOkrII,2240
|
47
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
48
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
|
49
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
|
50
|
+
honeybee_radiance_postprocess-0.4.479.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|