Exporting SimBiology model with custom units

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.

답변 (1개)

Florian Augustin
Florian Augustin 2021년 5월 24일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Import Data에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 5월 21일

답변:

2021년 5월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by