标准、规范和模板的霍尼比能源扩展。
honeybee-energy-standards的Python项目详细描述
蜜蜂能源标准
标准、规范和模板的蜜蜂能量扩展。在
此模块添加到honeybee-energy.lib的所有数据都来自 OpenStudio Standards Gem和主人 Google Sheets files 拥有所有最新的数据。这些数据的原始来源包括:
- 美国能源部。在
- 包括2004年至今的所有版本。在
- Commercial Buildings Energy Consumption Survey (CBECS),专门用于ASHRAE标准90.12004之前的任何模板。在
安装
pip install honeybee-energy-standards
快速启动
^{pr2}$API Documentation
地方发展
- 在本地克隆此repo
git clone git@github.com:ladybug-tools/honeybee-energy-standards# or git clone https://github.com/ladybug-tools/honeybee-energy-standards
- 安装依赖项:
cd honeybee-energy-standardspip install -r dev-requirements.txt
- 运行测试:
python -m pytest tests/
- 从OpenStudio Standards Gem重新生成数据 (或根据蜜蜂模式的更改更新json)
fromstandards_update._util._allimportclean_all,remove_allfromstandards_update._util._to_honeybeeimportconvert_to_hb_json,remove_hb_jsonsremove_hb_jsons()# remove all of the honeybee JSON data that currently exists# generate clean OpenStudio Standards Data JSONs from the gemashrae_standards='C:/Users/chris/Documents/GitHub/openstudio-standards/lib/' \ 'openstudio-standards/standards/ashrae_90_1/'clean_all(ashrae_standards)# change the package to load all data from the clean Standards Gem JSONsimportstandards_update._change_to_standards_dataconvert_to_hb_json()# generate Honeybee JSONs from the clean Standards Gem JSONsremove_all()# remove all of the clean Standards Gem JSONs now that they're converted
生成的JSON数据将被输出到data文件夹,以便 在复制到蜜蜂能源标准之前检查过。在
以本次回购为例的开发人员注意事项
开发人员可以使用这个存储库和Python包作为模板来创建
拥有可供蜜蜂能源使用的标准库扩展。为了这样
开发人员,重要的是要了解必须遵守的规则,才能拥有
蜜蜂能源标准的成功推广。首先,任何蜜蜂能源标准
扩展名必须有一个包名,以honeybee_energy
开头,结尾
使用standards
(中间的所有单词都由用户决定,除了空格和
特殊字符)。在
其次,以下文件夹必须包含在任何蜜蜂能源标准中 分机:
constructions
constructionsets
schedules
programtypes
必须遵守以下规则:
- 所有json必须使用Honeybee Model Schema 对象的表示形式,并且必须以对象名称作为键进行格式化 以及对象的模式定义作为值。在
constructions
子文件夹应包含以下文件:opaque_material.json
,opaque_construction.json
,window_material.json
,window_constructions.json
。 这些文件应该拥有与其名称匹配的对象。在schedules
子文件夹应在schedule.json
文件中包含所有计划。在constructionsets
和{}文件夹可以拥有任意数量的JSON 文件及其各自的对象。在 - 任何组成较大对象的对象都必须存在。例如,所有
构成
constructionsets
中对象的结构必须在 ^{cd3>子文件夹。在
- 项目
标签: