Honeybee Radiance folder is a Python library to read, write and validate Radiance folder structure.
Project description
honeybee-radiance-folder
Honeybee Radiance folder is a python library to read, write and validate Radiance folder structure.
Usage
# create a Radiance folder
from honeybee_radiance_folder import Folder
import os
rf = 'c:/ladybug/sample_folder'
folder = Folder(rf)
folder.write(overwrite=True)
# check the folders created in folder
for f in os.listdir(rf):
print(f)
asset
model
output
system
# load a Radiance folder
# in this case we are loading the folder from sample folder in radiance folder repository
# you can download it from here
# https://github.com/ladybug-tools/radiance-folder-structure/tree/master/project_folder
from honeybee_radiance_folder import Folder
rf = 'c:/ladybug/sample_folder'
folder = Folder(rf)
# get input files for static scene
for f in folder.model.static_nonaperture_files(black_out=False, rel_path=True):
print(f)
model\static\opaque\sample_case.mat
model\static\opaque\sample_case.rad
model\static\opaque\outdoor\context.mat
model\static\opaque\outdoor\context.rad
model\static\opaque\indoor\partition.mat
model\static\opaque\indoor\partition.rad
model\static\nonopaque\indoor\partition_glass.mat
model\static\nonopaque\indoor\partition_glass.rad
# and static aperture
for f in folder.model.static_aperture_files(black_out=False, rel_path=True):
print(f)
model\static\aperture\sample_case.mat
model\static\aperture\sample_case.rad
# and finally get the dynamic aperture - south window in this case
# and check each state
for count, ap in enumerate(folder.model.dynamic_aperture(interior=False)):
print('dynamic aperture %d: %s' % (count + 1, ap.name))
for state in ap.states:
print('- %s: %s' % (state.name, state.default))
dynamic aperture 1: south_window
- clear: south_window..default..000.rad
- diffuse: south_window..default..001.rad
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for honeybee-radiance-folder-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22536558518785c12cb62102755aa69e9ebea411f53214c9f91e5f0230676f03 |
|
MD5 | 4f4f4b19c8b32dfcc2cb919504c065e6 |
|
BLAKE2b-256 | 1ee4b423cfa8ca73aa1a2f6d66bbc2c15de4710d09e53b93f5707584f47c973d |
Close
Hashes for honeybee_radiance_folder-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7d4b148f16147bf842f94b6a14c3d0984428e1ea543edd5f73e74eace7b5e9 |
|
MD5 | 706f8de540448501f9b066490a26b3e5 |
|
BLAKE2b-256 | 9652706071137174c0cfeae6dad9fe16f5ad4f22472e89008dad31ff6f698c1b |