vivarium-interactive 1.0.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.
- vivarium/interactive/__init__.py +22 -0
- vivarium/interactive/exceptions.py +13 -0
- vivarium/interactive/py.typed +0 -0
- vivarium/interactive/simulation.py +1248 -0
- vivarium/interactive/utilities.py +78 -0
- vivarium_interactive-1.0.0.dist-info/METADATA +85 -0
- vivarium_interactive-1.0.0.dist-info/RECORD +10 -0
- vivarium_interactive-1.0.0.dist-info/WHEEL +5 -0
- vivarium_interactive-1.0.0.dist-info/licenses/LICENSE +27 -0
- vivarium_interactive-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""
|
|
2
|
+
====================
|
|
3
|
+
Vivarium Interactive
|
|
4
|
+
====================
|
|
5
|
+
|
|
6
|
+
Run and inspect a vivarium simulation interactively, for example in a notebook.
|
|
7
|
+
|
|
8
|
+
Top-level re-exports for common API surface:
|
|
9
|
+
|
|
10
|
+
- ``Simulation``: a simulation that steps on demand and exposes its state.
|
|
11
|
+
- ``ObservationError``: raised when a registered observation fails.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
15
|
+
|
|
16
|
+
try:
|
|
17
|
+
__version__ = version("vivarium-interactive")
|
|
18
|
+
except PackageNotFoundError:
|
|
19
|
+
__version__ = "0.0.0+not-installed"
|
|
20
|
+
|
|
21
|
+
from vivarium.interactive.exceptions import ObservationError
|
|
22
|
+
from vivarium.interactive.simulation import Simulation
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""
|
|
2
|
+
==========
|
|
3
|
+
Exceptions
|
|
4
|
+
==========
|
|
5
|
+
|
|
6
|
+
Exceptions raised by :class:`~vivarium.interactive.simulation.Simulation`.
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
from vivarium.engine.exceptions import VivariumError
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ObservationError(VivariumError):
|
|
13
|
+
"""Raised when an observation registered on a :class:`~vivarium.interactive.simulation.Simulation` raises an exception."""
|
|
File without changes
|