Exporting SimBiology model with custom units
5 次查看(过去 30 天)
显示 更早的评论
I get this error
An error occurred parsing the unit composition
trying to export a model (attached) that has a species with unit uM, defined as micromolarity in the "Library":
sbmlexport(sbioloadproject("test.sbproj").m1)
Any insights?
Thanks.
0 个评论
回答(1 个)
Florian Augustin
2021-5-24
Hi,
Thank you for reporting this issue. There is a bug in sbmlexport, it should be able to export your custom unit. We are looking into a fix. As a workaround I suggest to define your custom unit uM in terms of micromole/liter:
% Remove the old unit
uM = sbioselect(sbioroot, "Name", "uM");
sbioremovefromlibrary(uM);
% Add the new unit
customUnit = sbiounit("uM", "micromole/liter");
sbioaddtolibrary(customUnit);
Best regards,
Florian
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Extend Modeling Environment 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!