Exporting SimBiology model with custom units

3 visualizaciones (últimos 30 días)
R Andreev
R Andreev el 21 de Mayo de 2021
Respondida: Florian Augustin el 24 de Mayo de 2021
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.

Respuestas (1)

Florian Augustin
Florian Augustin el 24 de Mayo de 2021
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

Categorías

Más información sobre Extend Modeling Environment en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by