Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eagmon committed Dec 21, 2024
1 parent 04baab1 commit 30d0cc6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process_bigraph/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def save(self,
schema=False,
state=False):

# add upcoming deprecation warning
# upcoming deprecation warning
print("Warning: save() is deprecated and will be removed in a future version. "
"Use use Vivarium for managing simulations instead of Composite.")

Expand Down Expand Up @@ -902,6 +902,11 @@ def outputs(self):


def read_emitter_config(self, emitter_config):

# upcoming deprecation warning
print("Warning: read_emitter_config() is deprecated and will be removed in a future version. "
"Use use Vivarium for managing simulations and emitters instead of Composite.")

address = emitter_config.get('address', 'local:ram-emitter')
config = emitter_config.get('config', {})
mode = emitter_config.get('mode', 'none')
Expand Down
11 changes: 11 additions & 0 deletions process_bigraph/vivarium.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@


class Vivarium:
"""
Vivarium is a controlled virtual environment for composite process-bigraph simulations.
It manages packages and sets up the conditions for running simulations, and collects results through emitters.
Attributes:
document (dict): The configuration document for the simulation.
core (ProcessTypes): The core process types manager.
composite (Composite): The composite object managing the simulation.
require (list): List of required packages for the simulation.
"""
def __init__(self,
document=None,
processes=None,
Expand Down

0 comments on commit 30d0cc6

Please sign in to comment.