-
Notifications
You must be signed in to change notification settings - Fork 31
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
SBML import: Allow hardcoding of numerical values #2134
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2134 +/- ##
========================================
Coverage 76.66% 76.67%
========================================
Files 81 81
Lines 14920 14926 +6
========================================
+ Hits 11439 11445 +6
Misses 3481 3481
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
👍
raise ValueError( | ||
f"Cannot hardcode symbol `{c.getId()}` that is a rule target." | ||
) | ||
if self.sbml.getInitialAssignment(c.getId()): |
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.
add event assignements. What about assignment rules?
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.
Event assignments were missing, true. Assignment rules were handled by getRuleByVariable
. Now changed to checking for the constant
attribute which covers both.
Allows selecting parameters whose values are to be hard-coded (#1192).
So far, restricted to parameters that aren't targets of rule or initial assignments.
This can be extended later: lifting those restrictions on parameters, allow hard-coding Species with constant=True, ...