-
Notifications
You must be signed in to change notification settings - Fork 46
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
fix: cobrapy parsing errors of yaml #238
Comments
I wonder if the YAML parser expects a list there. Since it is legal to have square brackets denote lists. How is this line written? It should probably be: - name: "[cytochrome c]-L-lysine" |
@Midnighter the yaml file is written using https://github.com/SysBioChalmers/RAVEN/blob/master/io/writeYaml.m and aims to mimic the format of https://github.com/opencobra/cobrapy/blob/devel/cobra/test/data/mini.yml. The name fields in |
Yes, it is because it starts with a bracket. I think it would be safest to put all strings in quotes. However, I don't know if this is easily possible with ruamel.yaml since it might add quotes only when necessary and you'd have conflicts with cobrapy again. |
Apparently, |
great, I will propose a similar flag for the RAVEN function then. Compatibility with cobrapy is for now only needed in one direction (i.e. model being loaded with cobrapy), so there should not be any conflicts? |
That's easier then, indeed. |
update: this was solved with #253 and will be closed on the next release |
Between this and the other fixes in PR #255, I think it should be safe to close this issue. |
@mihai-sysbio the issue is indeed solved, but only in |
Oh I thought that was covered by this line in the issue template:
|
@mihai-sysbio the
|
mentioned in #236:
The line in question is
- name: [cytochrome c]-L-lysine
However the error message is a bit criptic:
I'm also assuming that more parsing errors will come as we solve them, so this will remain open until all are adressed.
The text was updated successfully, but these errors were encountered: