SimBio 0.3.1__tar.gz → 0.4.0__tar.gz

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.
Files changed (62) hide show
  1. {SimBio-0.3.1 → simbio-0.4}/PKG-INFO +3 -3
  2. {SimBio-0.3.1 → simbio-0.4}/README.md +1 -1
  3. {SimBio-0.3.1 → simbio-0.4}/requirements.test.txt +1 -1
  4. {SimBio-0.3.1 → simbio-0.4}/src/SimBio.egg-info/PKG-INFO +3 -3
  5. {SimBio-0.3.1 → simbio-0.4}/src/SimBio.egg-info/requires.txt +1 -1
  6. simbio-0.4/src/simbio/io/biomodels.py +21 -0
  7. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/importer.py +2 -0
  8. SimBio-0.3.1/src/simbio/io/biomodels.py +0 -14
  9. {SimBio-0.3.1 → simbio-0.4}/.gitattributes +0 -0
  10. {SimBio-0.3.1 → simbio-0.4}/.github/workflows/ci.yml +0 -0
  11. {SimBio-0.3.1 → simbio-0.4}/.gitignore +0 -0
  12. {SimBio-0.3.1 → simbio-0.4}/.pre-commit-config.yaml +0 -0
  13. {SimBio-0.3.1 → simbio-0.4}/.readthedocs.yml +0 -0
  14. {SimBio-0.3.1 → simbio-0.4}/conftest.py +0 -0
  15. {SimBio-0.3.1 → simbio-0.4}/docs/_config.yml +0 -0
  16. {SimBio-0.3.1 → simbio-0.4}/docs/_toc.yml +0 -0
  17. {SimBio-0.3.1 → simbio-0.4}/docs/compilers/index.md +0 -0
  18. {SimBio-0.3.1 → simbio-0.4}/docs/design/design.md +0 -0
  19. {SimBio-0.3.1 → simbio-0.4}/docs/design/dsl.md +0 -0
  20. {SimBio-0.3.1 → simbio-0.4}/docs/design/features.md +0 -0
  21. {SimBio-0.3.1 → simbio-0.4}/docs/design/multilevel_dsl.md +0 -0
  22. {SimBio-0.3.1 → simbio-0.4}/docs/design/references.md +0 -0
  23. {SimBio-0.3.1 → simbio-0.4}/docs/examples/basic.md +0 -0
  24. {SimBio-0.3.1 → simbio-0.4}/docs/examples/chained-reactions.md +0 -0
  25. {SimBio-0.3.1 → simbio-0.4}/docs/examples/compartments.md +0 -0
  26. {SimBio-0.3.1 → simbio-0.4}/docs/examples/enzymatic.md +0 -0
  27. {SimBio-0.3.1 → simbio-0.4}/docs/index.md +0 -0
  28. {SimBio-0.3.1 → simbio-0.4}/docs/jupytext.toml +0 -0
  29. {SimBio-0.3.1 → simbio-0.4}/docs/model/dynamic.md +0 -0
  30. {SimBio-0.3.1 → simbio-0.4}/docs/model/index.md +0 -0
  31. {SimBio-0.3.1 → simbio-0.4}/docs/model/reactions.md +0 -0
  32. {SimBio-0.3.1 → simbio-0.4}/docs/model/static.md +0 -0
  33. {SimBio-0.3.1 → simbio-0.4}/docs/references.bib +0 -0
  34. {SimBio-0.3.1 → simbio-0.4}/environment-dev.yml +0 -0
  35. {SimBio-0.3.1 → simbio-0.4}/pyproject.toml +0 -0
  36. {SimBio-0.3.1 → simbio-0.4}/requirements.docs.txt +0 -0
  37. {SimBio-0.3.1 → simbio-0.4}/requirements.io.txt +0 -0
  38. {SimBio-0.3.1 → simbio-0.4}/requirements.txt +0 -0
  39. {SimBio-0.3.1 → simbio-0.4}/setup.cfg +0 -0
  40. {SimBio-0.3.1 → simbio-0.4}/src/SimBio.egg-info/SOURCES.txt +0 -0
  41. {SimBio-0.3.1 → simbio-0.4}/src/SimBio.egg-info/dependency_links.txt +0 -0
  42. {SimBio-0.3.1 → simbio-0.4}/src/SimBio.egg-info/top_level.txt +0 -0
  43. {SimBio-0.3.1 → simbio-0.4}/src/simbio/__init__.py +0 -0
  44. {SimBio-0.3.1 → simbio-0.4}/src/simbio/core.py +0 -0
  45. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/__init__.py +0 -0
  46. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/exporter.py +0 -0
  47. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/importer.py +0 -0
  48. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/symbol.py +0 -0
  49. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/test_mathML.py +0 -0
  50. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/mathML/to_symbolite.py +0 -0
  51. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/__init__.py +0 -0
  52. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/from_libsbml.py +0 -0
  53. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/test_importer.py +0 -0
  54. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/tests/atol_factor.csv +0 -0
  55. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/tests/test_sbml_test_suite.py +0 -0
  56. {SimBio-0.3.1 → simbio-0.4}/src/simbio/io/sbml/types.py +0 -0
  57. {SimBio-0.3.1 → simbio-0.4}/src/simbio/reactions/__init__.py +0 -0
  58. {SimBio-0.3.1 → simbio-0.4}/src/simbio/reactions/compound.py +0 -0
  59. {SimBio-0.3.1 → simbio-0.4}/src/simbio/reactions/enzymatic.py +0 -0
  60. {SimBio-0.3.1 → simbio-0.4}/src/simbio/reactions/single.py +0 -0
  61. {SimBio-0.3.1 → simbio-0.4}/src/simbio/reactions/test_reactions.py +0 -0
  62. {SimBio-0.3.1 → simbio-0.4}/src/simbio/test_core.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SimBio
3
- Version: 0.3.1
3
+ Version: 0.4.0
4
4
  Summary: Simulation of Biological Systems
5
5
  Author-email: "Hernán E. Grecco" <hernan.grecco@gmail.com>, Mauro Silberberg <maurosilber@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/hgrecco/simbio
@@ -21,7 +21,7 @@ Requires-Dist: biomodels; extra == "io"
21
21
  Requires-Dist: python-libsbml; extra == "io"
22
22
  Provides-Extra: test
23
23
  Requires-Dist: pooch; extra == "test"
24
- Requires-Dist: pytest; extra == "test"
24
+ Requires-Dist: pytest<8.1; extra == "test"
25
25
  Requires-Dist: simbio[io]; extra == "test"
26
26
  Provides-Extra: docs
27
27
  Requires-Dist: jupyter-book; extra == "docs"
@@ -141,7 +141,7 @@ or download them from the [BioModels](https://www.ebi.ac.uk/biomodels/) reposito
141
141
 
142
142
  ```python
143
143
  >>> from simbio.io import biomodels
144
- >>> biomodels.load_model("BIOMD12")
144
+ >>> biomodels.load("BIOMD12")
145
145
  Elowitz2000 - Repressilator
146
146
  -----------------------------------------------------------------------------------
147
147
  type total names
@@ -109,7 +109,7 @@ or download them from the [BioModels](https://www.ebi.ac.uk/biomodels/) reposito
109
109
 
110
110
  ```python
111
111
  >>> from simbio.io import biomodels
112
- >>> biomodels.load_model("BIOMD12")
112
+ >>> biomodels.load("BIOMD12")
113
113
  Elowitz2000 - Repressilator
114
114
  -----------------------------------------------------------------------------------
115
115
  type total names
@@ -1,3 +1,3 @@
1
1
  pooch
2
- pytest
2
+ pytest<8.1
3
3
  simbio[io]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SimBio
3
- Version: 0.3.1
3
+ Version: 0.4.0
4
4
  Summary: Simulation of Biological Systems
5
5
  Author-email: "Hernán E. Grecco" <hernan.grecco@gmail.com>, Mauro Silberberg <maurosilber@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/hgrecco/simbio
@@ -21,7 +21,7 @@ Requires-Dist: biomodels; extra == "io"
21
21
  Requires-Dist: python-libsbml; extra == "io"
22
22
  Provides-Extra: test
23
23
  Requires-Dist: pooch; extra == "test"
24
- Requires-Dist: pytest; extra == "test"
24
+ Requires-Dist: pytest<8.1; extra == "test"
25
25
  Requires-Dist: simbio[io]; extra == "test"
26
26
  Provides-Extra: docs
27
27
  Requires-Dist: jupyter-book; extra == "docs"
@@ -141,7 +141,7 @@ or download them from the [BioModels](https://www.ebi.ac.uk/biomodels/) reposito
141
141
 
142
142
  ```python
143
143
  >>> from simbio.io import biomodels
144
- >>> biomodels.load_model("BIOMD12")
144
+ >>> biomodels.load("BIOMD12")
145
145
  Elowitz2000 - Repressilator
146
146
  -----------------------------------------------------------------------------------
147
147
  type total names
@@ -13,5 +13,5 @@ python-libsbml
13
13
 
14
14
  [test]
15
15
  pooch
16
- pytest
16
+ pytest<8.1
17
17
  simbio[io]
@@ -0,0 +1,21 @@
1
+ from typing import Sequence
2
+
3
+ import biomodels
4
+
5
+ from .sbml import loads
6
+
7
+
8
+ def load(
9
+ model_id: str,
10
+ *,
11
+ name: str | None = None,
12
+ ignore_namespaces: Sequence[str] = [],
13
+ ):
14
+ omex = biomodels.get_omex(model_id)
15
+ text = omex.master.read_text()
16
+ model = loads(
17
+ text,
18
+ name=name,
19
+ ignore_namespaces=ignore_namespaces,
20
+ )
21
+ return model
@@ -81,6 +81,7 @@ def loads(
81
81
  *,
82
82
  name: str | None = None,
83
83
  identity_mapper: Callable[[str], str] = lambda x: x,
84
+ ignore_namespaces: Sequence[str] = [],
84
85
  ):
85
86
  document: libsbml.SBMLDocument = libsbml.readSBMLFromString(sbml)
86
87
  if document.getNumErrors() != 0:
@@ -90,6 +91,7 @@ def loads(
90
91
  namespaces: set[str] = {ns.getPrefix(i) for i in range(ns.getLength())}
91
92
  namespaces.difference_update(_Namespaces.IGNORED)
92
93
  namespaces.difference_update(_Namespaces.SUPPORTED)
94
+ namespaces.difference_update(ignore_namespaces)
93
95
  if len(namespaces) > 0:
94
96
  raise NotImplementedError(f"Unsupported SBML namespaces: {namespaces}")
95
97
 
@@ -1,14 +0,0 @@
1
- import biomodels
2
-
3
- from .sbml import loads
4
-
5
-
6
- def load_model(model_id: str, *, name: str | None = None):
7
- omex = biomodels.get_omex(model_id)
8
- text = omex.master.read_text()
9
- model = loads(text, name=name)
10
- return model
11
-
12
-
13
- if __name__ == "__main__":
14
- model = load_model("BIOMD12")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes