Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with identifiers that contain special characters #455

Open
wbio99 opened this issue Feb 1, 2023 · 1 comment
Open

Error with identifiers that contain special characters #455

wbio99 opened this issue Feb 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wbio99
Copy link

wbio99 commented Feb 1, 2023

Good afternoon
When I try to save a project in cnapy and when I resume it, that is, reopen it, it closes immediately.
Attached error that I get in the terminal. I appreciate if you can help me.
Captura desde 2023-02-01 14-19-33

openjdk version "1.8.0_332" OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-linux64) (build 1.8.0_332-b09) OpenJDK 64-Bit Server VM (Zulu 8.62.0.19-CA-linux64) (build 25.332-b09, mixed mode) Restricted license - for non-production use only - expires 2023-10-25 Scaling... A: min|aij| = 1,000e+00 max|aij| = 1,000e+00 ratio = 1,000e+00 Problem data seem to be well scaled glp_set_row_name: i = 1: row name contains invalid character(s) Error detected in file api/prob1.c at line 450 Abortado (core' generado)`

@wbio99 wbio99 added the bug Something isn't working label Feb 1, 2023
@axelvonkamp
Copy link
Member

axelvonkamp commented Feb 2, 2023

In SBML there are several restrictions on the type of characters that an identifier can contain. A lot of commonly used names in biology violate these restrictions, so in order to make them usable as identifiers cobrapy encodes such names when saving a model as SBML and decodes them when loading. Apparently this does not always work perfectly so that an identifier beginning e.g. with "_2-" causes trouble. As a workaround you should avoid underscores at the beginning of identifiers.

@axelvonkamp axelvonkamp changed the title Error when opening a project saved in .cna format Error with identifiers that contain special characters Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants