标准、规范和模板的霍尼比能源扩展。

honeybee-energy-standards的Python项目详细描述


Build Status

Python 2.7Python 3.6

蜜蜂能源标准

标准、规范和模板的蜜蜂能量扩展。在

此模块添加到honeybee-energy.lib的所有数据都来自 OpenStudio Standards Gem和主人 Google Sheets files 拥有所有最新的数据。这些数据的原始来源包括:

安装

pip install honeybee-energy-standards

快速启动

^{pr2}$

API Documentation

地方发展

  1. 在本地克隆此repo
git clone git@github.com:ladybug-tools/honeybee-energy-standards# or

git clone https://github.com/ladybug-tools/honeybee-energy-standards
  1. 安装依赖项:
cd honeybee-energy-standardspip install -r dev-requirements.txt
  1. 运行测试:
python -m pytest tests/
  1. 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.jsonopaque_construction.jsonwindow_material.jsonwindow_constructions.json。 这些文件应该拥有与其名称匹配的对象。在
  • schedules子文件夹应在schedule.json文件中包含所有计划。在
  • constructionsets和{}文件夹可以拥有任意数量的JSON 文件及其各自的对象。在
  • 任何组成较大对象的对象都必须存在。例如,所有 构成constructionsets中对象的结构必须在 ^{cd3>子文件夹。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
构造函数的java条件调用   类Dog中的java构造函数Dog不能应用于给定类型   java jsch和运行“sudo su”   java将队列和堆栈相互复制   java如何在netbeans项目的文件夹中添加库   java While循环在我的代码中不存在   如何在XML中使用java方法的返回值   java是否可以在不写入文件的情况下将字符串/字节数组作为文件发布?   java为什么这些字符串不相等?   sockets客户机-服务器java编程,用户可选择   java如何在SpringMVC和hibernate中保存模型返回视图的列表   java如何修复组织。openqa。硒。WebDriverException:未知错误   Java,Ant错误:编码Cp1252的不可映射字符   JAVAlang.ClassCastException:[Ljava.lang.String;与java.lang.String不兼容   java如何使用JDK8(可选)为空字段创建自定义IntelliJ getter模板   java Tomcat6响应。sendRedirect()404错误