- 
                Notifications
    
You must be signed in to change notification settings  - Fork 7
 
          Add SbmlModel.from_antimony
          #331
        
          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
Conversation
          Codecov ReportAttention: Patch coverage is  
 
 Additional details and impacted files@@             Coverage Diff             @@
##           develop     #331      +/-   ##
===========================================
- Coverage    74.36%   74.24%   -0.13%     
===========================================
  Files           53       53              
  Lines         5138     5168      +30     
  Branches       903      910       +7     
===========================================
+ Hits          3821     3837      +16     
- Misses         977      984       +7     
- Partials       340      347       +7     ☔ View full report in Codecov by Sentry.  | 
    
0839523    to
    af542d9      
    Compare
  
    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.
Nice, add support for antimony to the docs and spec in v2?
| model = SbmlModel.from_antimony( | ||
| "fixedParameter1 = 0.5\n" | ||
| "fixedParameter2 = 1.0\n" | ||
| "dynamicParameter1 = 0.0\n" | ||
| "observableParameter1_obs1 = 0.0\n" | ||
| "observableParameter2_obs1 = 0.0\n" | ||
| "observableParameter1_obs2 = 0.0" | ||
| ) | 
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.
Use """ instead of \n? Or does antimony interpret indentation?
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.
Makes sense. No, it doesn't.
          
 Undecided. Convenient, but not really a strong enough reason to deviate from SBML and make things less portable.  | 
    
Simplify creating a PEtab SbmlModel from antimony files or strings. Replace simplesbml by antimony in tests.
Simplify creating a PEtab SbmlModel from antimony files / strings.
Replace simplesbml by antimony in tests.