-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor * format * simplify * fixup * fix code smells * refactor llh funs * fixup * refactor code + fix typehints * refactor species initial assignment * denest * fix initialization * fixup identifiers * fix doc format * make doc nicer * refactor * fixups * fixup * fixup compartment rate rules * refactor SBML testing * fixup dtype * fix assert * fix whitespaces * fixup parameter assignment rules with hasOnlySubstanceUnits * fixup compartment assignment rules * add all compartments to observables * Update sbml_import.py * Update sbml_import.py * fixup measurement symbols, species references, initial assignments * fixup * fixup, add support for parameter initial assignments * fix observable names, conversion factors and expose initial assignments * fixups reaction ids, initial assignments * fix float initial assignments * fixup species references * fixup species references * denest * add documentation * Update python_interface.rst * Apply suggestions from code review Co-authored-by: Daniel Weindl <[email protected]> * address review comments * fixup * pythonize species parsing * pythonization of remaining symbols * fix symbol resetting * implement enum for fields, fix symbol resetting * fix doc * don't creat duplicate initial assignments in petab import * cleanup bad merge * fixup make initials * fixup * sanitize petab output ... * fixup sbml testsuite * fix observables * fixup * fixup * refactor field names * pythonize compartments and get rid of rate rule dicts * fixup * add support for parameter rate rules, fixes #1278 * fixup * fixup * format + efficiency * fix volume conversion and reserved symbol replacement * change handling of 'amount' species, do not simulate concentrations * add more compute time tracking * fixup initials and comp time derivative * iterable constant parameters for backwards compatibility (#1303) * Apply suggestions from code review Co-authored-by: dilpath <[email protected]> * fix compartments * Apply suggestions from code review Co-authored-by: dilpath <[email protected]> * refactor & adress review comments * fixups * fixup * fixup volume/concentration, add usage hint with pytest * fix code smell * update testsuite stats * better check for species in stoichiometric matrix * Apply suggestions from code review Co-authored-by: dilpath <[email protected]> * fix local symbols * update SBML test statistic * update doc * Update python/amici/sbml_import.py Co-authored-by: Daniel Weindl <[email protected]> * move code comment to doctstring Co-authored-by: Daniel Weindl <[email protected]> Co-authored-by: dilpath <[email protected]>
- Loading branch information
1 parent
49134ae
commit 9da5cfd
Showing
8 changed files
with
527 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Constants | ||
----------- | ||
This module provides a central place to define native python enums and | ||
constants that are used in multiple other modules | ||
""" | ||
|
||
import enum | ||
|
||
|
||
class SymbolId(str, enum.Enum): | ||
""" | ||
Defines the different fields in the symbol dict to which sbml entities | ||
get parsed to. | ||
.. note:: This class inherits from str enabling direct comparison to | ||
strings, which means that the species symbols can be accessed as | ||
symbols['species'], which is convenient for debugging and symbols[ | ||
SymbolId.SPECIES], which is how the field should be accessed | ||
programmatically. | ||
""" | ||
SPECIES = 'species' | ||
PARAMETER = 'parameter' | ||
FIXED_PARAMETER = 'fixed_parameter' | ||
OBSERVABLE = 'observable' | ||
EXPRESSION = 'expression' | ||
SIGMAY = 'sigmay' | ||
LLHY = 'llhy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.