HoneyBee Radiance文件夹是一个用于读取、写入和验证Radiance文件夹结构的Python库。
honeybee-radiance-folder的Python项目详细描述
蜜蜂发光文件夹
HoneyBee Radiance文件夹是一个用于读、写和验证的Python库 Radiance folder structure。
用法
# create a Radiance folderfromhoneybee_radiance_folderimportFolderimportosrf='c:/ladybug/sample_folder'folder=Folder(rf)folder.write(overwrite=True)# check the folders created in folderforfinos.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_folderfromhoneybee_radiance_folderimportFolderrf='c:/ladybug/sample_folder'folder=Folder(rf)# get input files for static sceneforfinfolder.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 apertureforfinfolder.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 stateforcount,apinenumerate(folder.model.dynamic_aperture(interior=False)):print('dynamic aperture %d: %s'%(count+1,ap.name))forstateinap.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