跳转到主要内容

OpenERP模块和库,用于管理多站点能源发电

项目描述

plantmeter

CI Coverage Status PyPI - Downloads

OpenERP模块和库,用于管理多站点能源发电

将被淘汰的包

此包的大部分内容正在被转移到somenergia-generationkwh或通用包如somenergia-utils中。

进一步开发应考虑继续这一过渡。

安装和测试

pip install -e .
pytest plantmeter # Run unit tests
pytest som_plantmeter/tests # Run erp tests (require a working local erp)

某些ERP测试会在Mongo数据库上清理ERP指向的集合,如果您的dbconfig指向生产设置,这可能会造成灾难。因此,默认情况下禁用了这些测试。为了在ERP测试中启用清洁室测试

  • 确保您的dbconfig.py配置指向测试数据库
  • 从somenergia-utils运行enable_destructive_tests.py
  • 这会启用ERP配置标志,使得破坏性测试不会被跳过。
  • 如果以后您意外地将dbconfig更改指向生产设置并运行这些测试,实际上它们不会执行

代码映射

请参阅somenergia-generationkwh文档中有关代码结构建议的部分。

如何发布

  • 更新README变更日志中的版本号
  • 更新setup.py中的版本号
  • 提交“升级到plantmeter-M.m.p”
  • git tag plantmeter-M.m.p
  • git push && git push --tags
  • 后面的推送将生成非erp模块的pypi源包

变更记录

plantmeter 1.7.5 2023-01-18

  • 在MongoTimeCurve.get()中添加过滤功能

plantmeter 1.7.4 2022-01-08

“与Python 2.7保持一致”的发布

  • Github actions CI
  • 将isodates移动到somutils
  • Python 2.7兼容性:添加了条件依赖

plantmeter 1.7.3 2019-07-29

Py3可移植性回归

  • MTC:mongo的bjson不接受numpy类型作为属性,因此在用numpy数组更新时,我们使用原生项。

plantmeter 1.7.2 2019-07-18

不再导入任何发布

  • 删除导入计量逻辑的相关逻辑,现在由Gisce完成
    • 删除与导入计量逻辑相关的Meter.last_commit
    • 删除GenerationkwhProductionNotifier和相关辅助程序
    • 删除update_kwh方法
    • 删除所有(计量)提供者
    • 删除GenerationkwhProductionAggregator.getNShares()
  • genkwh_production脚本重命名为genkwh_plants
  • genkwh_production curve提取为genkwh_mtc
  • genkwh_mtc:集合别名重命名
    • gisce -> production
    • production -> production_old
  • genkwh_mtc:新集合rightscorrection
  • 植物有first/last_active_date
  • 仪表有first/last_active_date
  • 新的Aggregator.firstActiveDate()返回植物的first_active_date的最小值
  • 功能测试移动到som_plantmeter/tests
  • 修复:混合/植物的lastMesurement是子代lastMeasurement的第一个
  • 新的迁移脚本以执行以前的修复并重写权限

plantmeter 1.7.1 2019-04-04

  • 删除过时的脚本genkwh_pull_statusgenkwh_export
  • 删除过时的genkwh_production子命令:pull-status,load-meassures和update-kwh
  • 由setup.py安装的脚本genkwh_production.py

plantmeter 1.7.0 2019-04-02

  • 仪表和植物都有first_active_date属性
  • 构建的植物份额不再是常数曲线,添加新植物时更改
  • 仪表的first_active_date过滤掉早期的测量值
  • 修复:混合/植物的lastMesurement是子代lastMeasurement的第一个
  • genkwh_migrate_1_6_3_newplant.sh:脚本以迁移旧植物并纳入新植物
  • 总体而言,对多个植物进行修复以真正启用
  • genkwh_production.py:editmix,editplant,editmeter
  • genkwh_production.py:editmix,editplant,editmeter
  • genkwh_production.py:delmix,delplant,delmeter
  • genkwh_production.py:meterset -> editmeter

plantmeter 1.6.2 2019-01-21

  • 已弃用genkwh_pull_status.pygenkwh_pull_status.sh
  • genkwh_production.py:添加pull_status作为子命令
  • genkwh_production.py pull_status:更友好的输出和退出状态
  • genkwh_migration_ftp_to_tmprofile.py迁移脚本

plantmeter 1.6.1 2019-01-03

  • 在每次命令的开始处显示erp配置
  • 保护genkwh_production.py clear免受损失性手指的影响

plantmeter 1.6.0 2019-01-03

  • 支持Python 3(python模块,尚未是erp代码)
  • 迁移到pymongo 3
  • MongoTimeCurve接受一些字段名作为参数(timestampcreation
  • 从ProductionPlant和ProductionAggregator抽象出ResourceParent
  • genkwh_production.py list:列出所有资源层次结构(混合、植物、仪表)
  • genkwh_production.py addmix:添加聚合器,现在是'mix'
  • genkwh_production.py addplant:添加植物
  • genkwh_production.py addmeter:添加仪表
  • genkwh_production.py curve:提取存储曲线作为TSV(生产、权利...)
  • genkwh_production.py命令文档

项目详细信息


下载文件

下载适用于您平台的应用程序文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分布

plantmeter-1.7.11.tar.gz (30.4 kB 查看哈希值)

上传时间 源代码

构建分布

plantmeter-1.7.11-py3-none-any.whl (30.3 kB 查看哈希值)

上传时间 Python 3

支持