dragonfly-radiance 0.4.73__py3-none-any.whl → 0.4.108__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.
- dragonfly_radiance/cli/translate.py +69 -9
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/METADATA +3 -3
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/RECORD +7 -7
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/WHEEL +0 -0
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/entry_points.txt +0 -0
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/licenses/LICENSE +0 -0
- {dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/top_level.txt +0 -0
|
@@ -40,6 +40,14 @@ def translate():
|
|
|
40
40
|
'Note that this input has no effect when the object-per-model is Story.',
|
|
41
41
|
default=True, show_default=True
|
|
42
42
|
)
|
|
43
|
+
@click.option(
|
|
44
|
+
'--merge-method', '-m', help='Text to describe how the Room2Ds should '
|
|
45
|
+
'be merged into individual Rooms during the translation. Specifying a '
|
|
46
|
+
'value here can be an effective way to reduce the number of Room '
|
|
47
|
+
'volumes in the resulting Model and, ultimately, yield less results to manage. '
|
|
48
|
+
'Choose from: None, Zones, PlenumZones, Stories, PlenumStories.',
|
|
49
|
+
type=str, default='None', show_default=True
|
|
50
|
+
)
|
|
43
51
|
@click.option(
|
|
44
52
|
'--folder', help='Folder into which the model Radiance '
|
|
45
53
|
'folders will be written. If None, the files will be output in the '
|
|
@@ -91,7 +99,7 @@ def translate():
|
|
|
91
99
|
'folder generated from the model. By default this will be printed '
|
|
92
100
|
'to stdout', type=click.File('w'), default='-')
|
|
93
101
|
def model_to_rad_folder_cli(
|
|
94
|
-
model_file, multiplier, plenum, no_ceil_adjacency,
|
|
102
|
+
model_file, multiplier, plenum, no_ceil_adjacency, merge_method,
|
|
95
103
|
folder, view, grid, full_match, config_file, minimal,
|
|
96
104
|
no_grid_check, no_view_check, create_grids, log_file
|
|
97
105
|
):
|
|
@@ -111,7 +119,7 @@ def model_to_rad_folder_cli(
|
|
|
111
119
|
grid_check = not no_grid_check
|
|
112
120
|
view_check = not no_view_check
|
|
113
121
|
model_to_rad_folder(
|
|
114
|
-
model_file, full_geometry, no_plenum, ceil_adjacency,
|
|
122
|
+
model_file, full_geometry, no_plenum, ceil_adjacency, merge_method,
|
|
115
123
|
folder, view, grid, full_match, config_file,
|
|
116
124
|
minimal, grid_check, view_check, create_grids, log_file)
|
|
117
125
|
except Exception as e:
|
|
@@ -123,8 +131,9 @@ def model_to_rad_folder_cli(
|
|
|
123
131
|
|
|
124
132
|
def model_to_rad_folder(
|
|
125
133
|
model_file, full_geometry=False, no_plenum=False, ceil_adjacency=False,
|
|
126
|
-
folder=None, view=None, grid=None, full_match=False,
|
|
127
|
-
minimal=False, grid_check=False, view_check=False,
|
|
134
|
+
merge_method='None', folder=None, view=None, grid=None, full_match=False,
|
|
135
|
+
config_file=None, minimal=False, grid_check=False, view_check=False,
|
|
136
|
+
create_grids=False, log_file=None,
|
|
128
137
|
multiplier=True, plenum=True, no_ceil_adjacency=True,
|
|
129
138
|
no_full_match=True, maximal=True, no_grid_check=False, no_view_check=False,
|
|
130
139
|
):
|
|
@@ -135,6 +144,33 @@ def model_to_rad_folder(
|
|
|
135
144
|
pkl (DFpkl) file. This can also be a zipped version of a Radiance
|
|
136
145
|
folder, in which case this command will simply unzip the file
|
|
137
146
|
into the --folder and no other operations will be performed on it.
|
|
147
|
+
full_geometry: Boolean to note if the multipliers on each Building story
|
|
148
|
+
will be passed along to the generated Honeybee Room objects or if
|
|
149
|
+
full geometry objects should be written for each story in the
|
|
150
|
+
building. (Default: False).
|
|
151
|
+
no_plenum: Boolean to indicate whether ceiling/floor plenum depths
|
|
152
|
+
assigned to Room2Ds should generate distinct 3D Rooms in the
|
|
153
|
+
translation. (Default: False).
|
|
154
|
+
ceil_adjacency: Boolean to indicate whether adjacencies should be solved
|
|
155
|
+
between interior stories when Room2Ds perfectly match one another
|
|
156
|
+
in their floor plate. This ensures that Surface boundary conditions
|
|
157
|
+
are used instead of Adiabatic ones. Note that this input has no
|
|
158
|
+
effect when the object-per-model is Story. (Default: False).
|
|
159
|
+
merge_method: An optional text string to describe how the Room2Ds should
|
|
160
|
+
be merged into individual Rooms during the translation. Specifying a
|
|
161
|
+
value here can be an effective way to reduce the number of Room
|
|
162
|
+
volumes in the resulting Model and, ultimately, yield less
|
|
163
|
+
results to manage. Note that Room2Ds will only be merged if they
|
|
164
|
+
form a contiguous volume. Otherwise, there will be multiple Rooms per
|
|
165
|
+
zone or story, each with an integer added at the end of their
|
|
166
|
+
identifiers. Choose from the following options:
|
|
167
|
+
|
|
168
|
+
* None - No merging will occur
|
|
169
|
+
* Zones - Room2Ds in the same zone will be merged
|
|
170
|
+
* PlenumZones - Only plenums in the same zone will be merged
|
|
171
|
+
* Stories - Rooms in the same story will be merged
|
|
172
|
+
* PlenumStories - Only plenums in the same story will be merged
|
|
173
|
+
|
|
138
174
|
folder: Folder into which the model Radiance folders will be written.
|
|
139
175
|
If None, the files will be output in the same location as the model_file.
|
|
140
176
|
view: List of grids to be included in folder. By default all the sensor
|
|
@@ -185,7 +221,8 @@ def model_to_rad_folder(
|
|
|
185
221
|
multiplier = not full_geometry
|
|
186
222
|
hb_models = model.to_honeybee(
|
|
187
223
|
object_per_model='District', use_multiplier=multiplier,
|
|
188
|
-
exclude_plenums=no_plenum, solve_ceiling_adjacencies=ceil_adjacency
|
|
224
|
+
exclude_plenums=no_plenum, solve_ceiling_adjacencies=ceil_adjacency,
|
|
225
|
+
merge_method=merge_method)
|
|
189
226
|
model = hb_models[0]
|
|
190
227
|
|
|
191
228
|
if create_grids:
|
|
@@ -247,6 +284,12 @@ def model_to_rad_folder(
|
|
|
247
284
|
'that Surface boundary conditions are used instead of Adiabatic ones. '
|
|
248
285
|
'Note that this input has no effect when the object-per-model is Story.',
|
|
249
286
|
default=True, show_default=True)
|
|
287
|
+
@click.option('--merge-method', '-m', help='Text to describe how the Room2Ds should '
|
|
288
|
+
'be merged into individual Rooms during the translation. Specifying a '
|
|
289
|
+
'value here can be an effective way to reduce the number of Room '
|
|
290
|
+
'volumes in the resulting Model and, ultimately, yield less results to manage. '
|
|
291
|
+
'Choose from: None, Zones, PlenumZones, Stories, PlenumStories.',
|
|
292
|
+
type=str, default='None', show_default=True)
|
|
250
293
|
@click.option('--blk', help='Boolean to note whether the "blacked out" version '
|
|
251
294
|
'of the geometry should be output, which is useful for direct studies '
|
|
252
295
|
'and isolation studies of individual apertures.',
|
|
@@ -257,7 +300,7 @@ def model_to_rad_folder(
|
|
|
257
300
|
@click.option('--output-file', '-f', help='Optional Rad file to output the Rad string '
|
|
258
301
|
'of the translation. By default this will be printed out to stdout',
|
|
259
302
|
type=click.File('w'), default='-', show_default=True)
|
|
260
|
-
def model_to_rad_cli(model_file, multiplier, plenum, no_ceil_adjacency,
|
|
303
|
+
def model_to_rad_cli(model_file, multiplier, plenum, no_ceil_adjacency, merge_method,
|
|
261
304
|
blk, minimal, output_file):
|
|
262
305
|
"""Translate a Dragonfly Model file to a Radiance string.
|
|
263
306
|
|
|
@@ -272,7 +315,7 @@ def model_to_rad_cli(model_file, multiplier, plenum, no_ceil_adjacency,
|
|
|
272
315
|
no_plenum = not plenum
|
|
273
316
|
ceil_adjacency = not no_ceil_adjacency
|
|
274
317
|
model_to_rad(model_file, full_geometry, no_plenum, ceil_adjacency,
|
|
275
|
-
blk, minimal, output_file)
|
|
318
|
+
merge_method, blk, minimal, output_file)
|
|
276
319
|
except Exception as e:
|
|
277
320
|
_logger.exception('Model translation failed.\n{}\n'.format(e))
|
|
278
321
|
sys.exit(1)
|
|
@@ -282,7 +325,7 @@ def model_to_rad_cli(model_file, multiplier, plenum, no_ceil_adjacency,
|
|
|
282
325
|
|
|
283
326
|
def model_to_rad(
|
|
284
327
|
model_file, full_geometry=False, no_plenum=False, ceil_adjacency=False,
|
|
285
|
-
blk=False, minimal=False, output_file=None,
|
|
328
|
+
merge_method='None', blk=False, minimal=False, output_file=None,
|
|
286
329
|
multiplier=True, plenum=True, no_ceil_adjacency=True, maximal=True
|
|
287
330
|
):
|
|
288
331
|
"""Translate a Model file to a Radiance string.
|
|
@@ -306,6 +349,21 @@ def model_to_rad(
|
|
|
306
349
|
in their floor plate. This ensures that Surface boundary conditions
|
|
307
350
|
are used instead of Adiabatic ones. Note that this input has no
|
|
308
351
|
effect when the object-per-model is Story. (Default: False).
|
|
352
|
+
merge_method: An optional text string to describe how the Room2Ds should
|
|
353
|
+
be merged into individual Rooms during the translation. Specifying a
|
|
354
|
+
value here can be an effective way to reduce the number of Room
|
|
355
|
+
volumes in the resulting Model and, ultimately, yield less
|
|
356
|
+
results to manage. Note that Room2Ds will only be merged if they
|
|
357
|
+
form a contiguous volume. Otherwise, there will be multiple Rooms per
|
|
358
|
+
zone or story, each with an integer added at the end of their
|
|
359
|
+
identifiers. Choose from the following options:
|
|
360
|
+
|
|
361
|
+
* None - No merging will occur
|
|
362
|
+
* Zones - Room2Ds in the same zone will be merged
|
|
363
|
+
* PlenumZones - Only plenums in the same zone will be merged
|
|
364
|
+
* Stories - Rooms in the same story will be merged
|
|
365
|
+
* PlenumStories - Only plenums in the same story will be merged
|
|
366
|
+
|
|
309
367
|
blk: Boolean to note whether the "blacked out" version of the geometry
|
|
310
368
|
should be output, which is useful for direct studies and isolation
|
|
311
369
|
studies of individual apertures.
|
|
@@ -321,7 +379,9 @@ def model_to_rad(
|
|
|
321
379
|
multiplier = not full_geometry
|
|
322
380
|
hb_models = model.to_honeybee(
|
|
323
381
|
object_per_model='District', use_multiplier=multiplier,
|
|
324
|
-
exclude_plenums=no_plenum, solve_ceiling_adjacencies=ceil_adjacency
|
|
382
|
+
exclude_plenums=no_plenum, solve_ceiling_adjacencies=ceil_adjacency,
|
|
383
|
+
merge_method=merge_method
|
|
384
|
+
)
|
|
325
385
|
hb_model = hb_models[0]
|
|
326
386
|
|
|
327
387
|
# create the strings for modifiers and geometry
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dragonfly-radiance
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.108
|
|
4
4
|
Summary: Dragonfly extension for radiance simulation.
|
|
5
5
|
Home-page: https://github.com/ladybug-tools/dragonfly-radiance
|
|
6
6
|
Author: Ladybug Tools
|
|
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: Implementation :: IronPython
|
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: dragonfly-core==1.
|
|
22
|
-
Requires-Dist: honeybee-radiance==1.66.
|
|
21
|
+
Requires-Dist: dragonfly-core==1.74.11
|
|
22
|
+
Requires-Dist: honeybee-radiance==1.66.213
|
|
23
23
|
Dynamic: author
|
|
24
24
|
Dynamic: author-email
|
|
25
25
|
Dynamic: classifier
|
|
@@ -3,16 +3,16 @@ dragonfly_radiance/__main__.py,sha256=ly6FLNs9Rxq7G_TcItza_9faTXQ48nzZlXgXKd-2n_
|
|
|
3
3
|
dragonfly_radiance/_extend_dragonfly.py,sha256=eYxw_KAtcMBFQAlAFXOY_aUrWbeP-lsxAepMxyorquo,1965
|
|
4
4
|
dragonfly_radiance/gridpar.py,sha256=3u04rncp2Oy-ckpwwvTAZbvriy8J560Vxk0fjCx-bNo,25643
|
|
5
5
|
dragonfly_radiance/cli/__init__.py,sha256=7Zx_-nOm0gIioPH5XtVyrTfGPwzniTUF3vqcCp4RLn4,423
|
|
6
|
-
dragonfly_radiance/cli/translate.py,sha256=
|
|
6
|
+
dragonfly_radiance/cli/translate.py,sha256=zj04WUFk-WWV9zwAgKYUygoaaKgq84bceRAHljFhEgs,20674
|
|
7
7
|
dragonfly_radiance/properties/__init__.py,sha256=h-O2WRFI5r12owvSQUrSgdLmlhM7shJAvzLFGryG3rk,37
|
|
8
8
|
dragonfly_radiance/properties/building.py,sha256=nRjezCr7JLMD6fsmQhYBb2GNUtrgtKV2Tli8l9tJ1Fg,6283
|
|
9
9
|
dragonfly_radiance/properties/context.py,sha256=WshH9BOhqbwvxmILRugTMfbvTMl8u5QzIETbJiORTUk,5250
|
|
10
10
|
dragonfly_radiance/properties/model.py,sha256=4SWWq79zwQlBZJ6np7_i1vIj8Cvr9NCj7YhF5Z0cj_k,20197
|
|
11
11
|
dragonfly_radiance/properties/room2d.py,sha256=I_JcNqOjhwov-U0wiFc9JeMmTX1Wukc-jPmU0khpEI4,9125
|
|
12
12
|
dragonfly_radiance/properties/story.py,sha256=htHHyAh8tNdQCGJGMvbI9Xo3RAdHdC8JPE1fnEPY-44,4519
|
|
13
|
-
dragonfly_radiance-0.4.
|
|
14
|
-
dragonfly_radiance-0.4.
|
|
15
|
-
dragonfly_radiance-0.4.
|
|
16
|
-
dragonfly_radiance-0.4.
|
|
17
|
-
dragonfly_radiance-0.4.
|
|
18
|
-
dragonfly_radiance-0.4.
|
|
13
|
+
dragonfly_radiance-0.4.108.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
14
|
+
dragonfly_radiance-0.4.108.dist-info/METADATA,sha256=PA1Y2plb-xoTPk7JfeWkTUZtrzXuLB_474j8kmvq8ic,2742
|
|
15
|
+
dragonfly_radiance-0.4.108.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
dragonfly_radiance-0.4.108.dist-info/entry_points.txt,sha256=7KZdeDvrwJ-ZB0LiTJ3TBkYJAmLl6_uSXXhZnLGct4g,71
|
|
17
|
+
dragonfly_radiance-0.4.108.dist-info/top_level.txt,sha256=uvkDZDtPEVgdj7rWsDAl4vcUIuWT7GFBBVmFK4pNE4s,19
|
|
18
|
+
dragonfly_radiance-0.4.108.dist-info/RECORD,,
|
|
File without changes
|
{dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{dragonfly_radiance-0.4.73.dist-info → dragonfly_radiance-0.4.108.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|