fix merge
This commit is contained in:
@ -31,9 +31,10 @@
|
||||
|
||||
### 四、打包方法
|
||||
|
||||
打包时,只需要修改 clibs.py 中的 PREFIX 即可,调试时再修改回来
|
||||
|
||||
```
|
||||
pyinstaller.exe -F --version-file file_version_info.txt -i .\icon.ico .\aio.py -p .\brake.py -p .\current.py
|
||||
pyinstaller --noconfirm --onedir --windowed --add-data "C:/Users/Administrator/AppData/Local/Programs/Python/Python312/Lib/site-packages/customtkinter;customtkinter/" --version-file ..\assets\file_version_info.txt -i ..\assets\icon.ico ..\code\aio.py -p ..\code\data_process\brake.py -p ..\code\data_process\iso.py -p ..\code\data_process\current.py -p ..\code\data_process\wavelogger.py
|
||||
pyinstaller --noconfirm --onedir --windowed --optimize 2 --contents-directory . --upx-dir "D:/Syncthing/common/A_Program/upx-4.2.4-win64/" --add-data "C:/Users/Administrator/AppData/Local/Programs/Python/Python312/Lib/site-packages/customtkinter;customtkinter/" --add-data "D:/Syncthing/company/D-测试工作/X-自动化测试/01-AIO/rokae/aio/assets/templates:templates" --version-file ../assets/file_version_info.txt -i ../assets/icon.ico ../code/aio.py -p ../code/data_process/brake.py -p ../code/data_process/iso.py -p ../code/data_process/current.py -p ../code/data_process/wavelogger.py -p ../code/commons/openapi.py -p ../code/commons/clibs.py -p ../code/automatic_test/btn_functions.py -p ../code/automatic_test/do_current.py -p ../code/automatic_test/do_brake.py -p ../code/durable_action/factory_test.py
|
||||
```
|
||||
|
||||
---
|
||||
@ -562,4 +563,31 @@ v0.2.0.3(2024/07/27)
|
||||
|
||||
v0.2.0.4(2024/07/30)
|
||||
1. [APIs: do_brake.py]: 修复制动数据处理过程中,只取曲线的最后 240 个数据
|
||||
2. [APIs: aio.py]: 判定版本处,删除 self.destroy(),因为该语句会导致异常发生
|
||||
2. [APIs: aio.py]: 判定版本处,删除 self.destroy(),因为该语句会导致异常发生
|
||||
- 心跳修改为 1s,因为 OOM 问题的解决依赖于长久的打开曲线开关,此时对于 hr.c_msg 的定时清理是个挑战,将心跳缩短,有利于清理日志后,避免丢失心跳
|
||||
- 新增 diagnosis.save 命令,但是执行时,有问题,待解决
|
||||
|
||||
v0.2.0.5(2024/07/31)
|
||||
此版本改动较大,公共部分做了规整,放置到新建文件夹 commons 当中,并所有自定义模块引入 logging 模块,记录重要信息
|
||||
1. [t_change_ui: clibs.py]
|
||||
- 调整代码组织结构,新增模块,将公共函数以及类合并入此
|
||||
- 将一些常量放入该模块
|
||||
- 引入logging/concurrent_log_handler模块,并作初始化操作,供其他模块使用,按50M切割,最多保留10份
|
||||
- prj_to_xcore函数设置工程名部分重写,修复了多个prj工程可能不能执行的问题,并优化输入密码的部分
|
||||
2. [t_change_ui: openapi.py]
|
||||
- 完全重写了 get_from_id 函数,使更精准
|
||||
- 在 msg_storage 函数中,增加 logger,保留所有响应消息
|
||||
- 删除 heartbeat 函数中的日志保存功能部分
|
||||
- 心跳再次修改为 2s...
|
||||
3. [t_change_ui: aio.py]
|
||||
- 增加了日志初始化部分
|
||||
- detect_network 函数中修改重新实例化HR间隔为 4s,对应心跳
|
||||
- create_plot 函数中增加 close('all'),解决循环画图不销毁占用内存的问题
|
||||
4. [t_change_ui: do_brake.py]
|
||||
- 使用一直打开曲线的方法规避解决了 OOM 的问题,同时修改数据处理方式,只取最后 12s
|
||||
- 优化 ssh 输入密码的部分
|
||||
5. [t_change_ui: do_current.py]
|
||||
- 保持电流,只取最后 15s
|
||||
- 优化 ssh 输入密码的部分
|
||||
6. [t_change_ui: all the part]: 引入 commons 包,并定制了 logging 输出,后续持续优化
|
||||
|
||||
|
Reference in New Issue
Block a user