Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for honeybee-radiance-folder, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size honeybee_radiance_folder-1.0.1-py2.py3-none-any.whl (9.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size honeybee-radiance-folder-1.0.1.tar.gz (97.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page