-
Notifications
You must be signed in to change notification settings - Fork 218
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
Refactor/io sbml #1182
Refactor/io sbml #1182
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #1182 +/- ##
=======================================
Coverage 83.90% 83.91%
=======================================
Files 65 65
Lines 5363 5365 +2
Branches 1241 1241
=======================================
+ Hits 4500 4502 +2
Misses 553 553
Partials 310 310
Continue to review full report at Codecov.
|
One question, possibly for @cdiener - Why do we have clip(), and not use something like replace(sid, prefix, 1) or regex? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a typo.
Fixed typo. Still wondering why we use the function _clip(sid: str, prefix: str) -> str: and not something like replace(sid, prefix, 1). Mostly curious. |
Because, |
model using read_function in IOTrail. | ||
This can be used to compare the original model, test model and the written and | ||
reread model. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. Thank you for the work!
Although a lot a documentation comments, but it is just to help us move faster to enabling You have also put a lot of type annotations on variables in the module scope, not really sure if we are doing that. Maybe others can vote for the decision. |
Originally, there were a lot of type annotation comments in this file. Annotation comments are Python 2 compliant, so I updated them to Python 3. |
Yeah I understood why you did those but I don't know if we want those converted now, so left it open for suggestions. |
@akaviaLab Let's keep the variable type annotation for now. If needed, we can remove it the future. |
I'm okay with the changes. @cdiener If it's okay with you as well, we can merge the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Updated sbml.py and test_sbml.py to Python 3.6+ including removing future, f-strings, typing. I also made the typing comments in sbml.py to typing annotations.