sbmlutils.converters.xpp_helpers
¶
Some testing of astnode manipulations.
alp(Vm) = abar / (1 + k1 * exp(-2 * d1 * 96.485 * Vm / 8.313424 / (310)) / c)
Module Contents¶
Functions¶
|
Print ASTNode information. |
|
Find all names in given astnode. |
|
Replace information in given formula. |
Get content of top bracket. |
|
Get bracket stack. |
Attributes¶
- sbmlutils.converters.xpp_helpers.ast_info(ast)[source]¶
Print ASTNode information.
- Parameters
ast (libsbml.ASTNode) –
- Return type
None
- sbmlutils.converters.xpp_helpers.find_names_in_ast(ast, names=None)[source]¶
Find all names in given astnode.
Names are the variables in the formula.
- Parameters
ast (libsbml.ASTNode) –
names (Optional[List[str]]) –
- Returns
- Return type
List[str]
- sbmlutils.converters.xpp_helpers.replace_formula(formula, fid, old_args, new_args)[source]¶
Replace information in given formula.
- Parameters
formula (str) –
fid (str) –
old_args (List[str]) –
new_args (List[str]) –
- Returns
- Return type
str
- sbmlutils.converters.xpp_helpers._top_bracket_content(s)[source]¶
Get content of top bracket.
- Parameters
s (str) –
- Return type
str