modelica - Is there a way to add traceability of source file in fmus?
问题描述
When a developer generates an fmu of a model from the working package (say Library.Package.ForFMUExport.MyModel), the downstream users can check the source model information(Library_Package_ForFMUExport_MyModel), time of generation, tool it was generated form etc. from ModelDescription.xml.
However, the source Modelica models do get updated in repositories and there could be multiple developers with dev branches from which fmu can be generated, and these fmus can get shared between other users/teams. Now, if the downstream user wants to trace back to the original Modelica file, it is hard to track the right version from the information in xml file. Has anyone figured out a solution or best practice to handle this or add traceability in fmus?
This may not have a standard solution, but I wanted to check if there are workarounds or processes the FMI user community is been utilizing to trace right version of the source model. (or maybe there is a standard solution that I am not aware of)
解决方案
这甚至可能取决于您的 Modelica 库开发工作流程。如果您使用正确的 Modelica 库版本控制,一些/许多 FMU 导出工具会将 Modelica 库版本作为版本元数据包含在 FMI 模型描述中。当然,导出工具甚至可以从您的源代码版本控制系统中添加修订(和状态)。但我还没有看到它。
推荐阅读
- visual-studio-code - 如何在 VSCode 中通过单次快捷键选择 HTML 属性的内容?
- git - 不支持的压缩,Azure git push over SSH?
- sql-server - 如何将多个查询编译为一个查询
- azure-iot-hub - 如何在 IoT 中心的设备创建事件中包含有关 iotEdge 功能的信息?
- authentication - Zabbix web 场景认证
- node.js - 如何使用 npm 在 react 上运行 sass
- progressive-web-apps - 在 PWA 中离线使用 MDC Web 需要下载什么?
- bash - 检查关联数组是否存在
- java - 在 Java 中转换 Optional.ofNullable().ifPresent() 中的 if else 语句
- salesforce - 如何在与 Salesforce Platform EventBus 对话的 Cometd 客户端中刷新令牌?