Skip to content

Commit

Permalink
adjusted config_schema to include emission types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Dec 1, 2023
1 parent d5c8539 commit 69c7458
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion process_bigraph/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ class MongoDatabaseEmitter(DatabaseEmitter):
default_host = 'localhost:27017'
client_dict: Dict[int, MongoClient] = {}
config_schema = {
'ports': 'tree[any]'}
'ports': 'tree[any]',
'emit_limit': 'int',
'embed_path': 'tuple[str]'
}

@classmethod
def create_indexes(cls, table: Any, columns: List[Any]) -> None:
Expand Down
5 changes: 4 additions & 1 deletion process_bigraph/experiments/smoldyn_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def run_smoldyn_simulation():
time_output = simulation.getOutputData('time')
mol_output = simulation.getOutputData('molecules')


# create an empty instance of database emitter
emitter = MongoDatabaseEmitter(config={})





0 comments on commit 69c7458

Please sign in to comment.