mxlpy 0.22.0__py3-none-any.whl → 0.23.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mxlpy/__init__.py +11 -2
- mxlpy/carousel.py +6 -4
- mxlpy/compare.py +2 -2
- mxlpy/integrators/__init__.py +4 -0
- mxlpy/integrators/int_assimulo.py +3 -3
- mxlpy/integrators/int_diffrax.py +119 -0
- mxlpy/integrators/int_scipy.py +12 -6
- mxlpy/label_map.py +1 -2
- mxlpy/mc.py +22 -22
- mxlpy/mca.py +8 -4
- mxlpy/meta/codegen_model.py +2 -1
- mxlpy/meta/codegen_mxlpy.py +194 -58
- mxlpy/meta/source_tools.py +124 -80
- mxlpy/meta/sympy_tools.py +5 -5
- mxlpy/model.py +288 -91
- mxlpy/plot.py +16 -14
- mxlpy/sbml/_export.py +13 -5
- mxlpy/sbml/_import.py +68 -547
- mxlpy/scan.py +38 -242
- mxlpy/simulator.py +4 -359
- mxlpy/types.py +655 -83
- mxlpy/units.py +5 -0
- {mxlpy-0.22.0.dist-info → mxlpy-0.23.0.dist-info}/METADATA +4 -1
- {mxlpy-0.22.0.dist-info → mxlpy-0.23.0.dist-info}/RECORD +26 -27
- mxlpy/sbml/_mathml.py +0 -692
- mxlpy/sbml/_unit_conversion.py +0 -74
- {mxlpy-0.22.0.dist-info → mxlpy-0.23.0.dist-info}/WHEEL +0 -0
- {mxlpy-0.22.0.dist-info → mxlpy-0.23.0.dist-info}/licenses/LICENSE +0 -0
mxlpy/sbml/_unit_conversion.py
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
__all__ = ["get_ast_types", "get_operator_mappings", "get_unit_conversion"]
|
4
|
-
|
5
|
-
|
6
|
-
import libsbml
|
7
|
-
|
8
|
-
unit_conversion = {
|
9
|
-
"UNIT_KIND_AMPERE": "AMPERE",
|
10
|
-
"UNIT_KIND_AVOGADRO": "AVOGADRO",
|
11
|
-
"UNIT_KIND_BECQUEREL": "BECQUEREL",
|
12
|
-
"UNIT_KIND_CANDELA": "CANDELA",
|
13
|
-
"UNIT_KIND_CELSIUS": "CELSIUS",
|
14
|
-
"UNIT_KIND_COULOMB": "COULOMB",
|
15
|
-
"UNIT_KIND_DIMENSIONLESS": "DIMENSIONLESS",
|
16
|
-
"UNIT_KIND_FARAD": "FARAD",
|
17
|
-
"UNIT_KIND_GRAM": "GRAM",
|
18
|
-
"UNIT_KIND_GRAY": "GRAY",
|
19
|
-
"UNIT_KIND_HENRY": "HENRY",
|
20
|
-
"UNIT_KIND_HERTZ": "HERTZ",
|
21
|
-
"UNIT_KIND_ITEM": "ITEM",
|
22
|
-
"UNIT_KIND_JOULE": "JOULE",
|
23
|
-
"UNIT_KIND_KATAL": "KATAL",
|
24
|
-
"UNIT_KIND_KELVIN": "KELVIN",
|
25
|
-
"UNIT_KIND_KILOGRAM": "KILOGRAM",
|
26
|
-
"UNIT_KIND_LITER": "LITER",
|
27
|
-
"UNIT_KIND_LITRE": "LITER",
|
28
|
-
"UNIT_KIND_LUMEN": "LUMEN",
|
29
|
-
"UNIT_KIND_LUX": "LUX",
|
30
|
-
"UNIT_KIND_METER": "METER",
|
31
|
-
"UNIT_KIND_METRE": "METRE",
|
32
|
-
"UNIT_KIND_MOLE": "MOLE",
|
33
|
-
"UNIT_KIND_NEWTON": "NEWTON",
|
34
|
-
"UNIT_KIND_OHM": "OHM",
|
35
|
-
"UNIT_KIND_PASCAL": "PASCAL",
|
36
|
-
"UNIT_KIND_RADIAN": "RADIAN",
|
37
|
-
"UNIT_KIND_SECOND": "SECOND",
|
38
|
-
"UNIT_KIND_SIEMENS": "SIEMENS",
|
39
|
-
"UNIT_KIND_SIEVERT": "SIEVERT",
|
40
|
-
"UNIT_KIND_STERADIAN": "STERADIAN",
|
41
|
-
"UNIT_KIND_TESLA": "TESLA",
|
42
|
-
"UNIT_KIND_VOLT": "VOLT",
|
43
|
-
"UNIT_KIND_WATT": "WATT",
|
44
|
-
"UNIT_KIND_WEBER": "WEBER",
|
45
|
-
"UNIT_KIND_INVALID": "INVALID",
|
46
|
-
}
|
47
|
-
|
48
|
-
|
49
|
-
def get_unit_conversion() -> dict[str, str]:
|
50
|
-
return {getattr(libsbml, k): v.lower() for k, v in unit_conversion.items()}
|
51
|
-
|
52
|
-
|
53
|
-
ast_types = dict(
|
54
|
-
sorted(
|
55
|
-
{getattr(libsbml, i): i for i in dir(libsbml) if i.startswith("AST_")}.items()
|
56
|
-
)
|
57
|
-
)
|
58
|
-
|
59
|
-
|
60
|
-
def get_ast_types() -> dict[str, str]:
|
61
|
-
return ast_types
|
62
|
-
|
63
|
-
|
64
|
-
operator_mappings = {
|
65
|
-
"AST_TIMES": "*",
|
66
|
-
"AST_PLUS": "+",
|
67
|
-
"AST_MINUS": "-",
|
68
|
-
"AST_DIVIDE": "/",
|
69
|
-
"AST_POWER": "**",
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
def get_operator_mappings() -> dict[str, str]:
|
74
|
-
return operator_mappings
|
File without changes
|
File without changes
|