From 69c74588bbe63d2a6520f377b0e192cf55f5eb6d Mon Sep 17 00:00:00 2001 From: alexPatrie Date: Fri, 1 Dec 2023 14:23:53 -0500 Subject: [PATCH] adjusted config_schema to include emission types --- process_bigraph/emitter.py | 5 ++++- process_bigraph/experiments/smoldyn_database.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/process_bigraph/emitter.py b/process_bigraph/emitter.py index 98e1660..3ef55b5 100644 --- a/process_bigraph/emitter.py +++ b/process_bigraph/emitter.py @@ -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: diff --git a/process_bigraph/experiments/smoldyn_database.py b/process_bigraph/experiments/smoldyn_database.py index 4ced5d7..7ccf982 100644 --- a/process_bigraph/experiments/smoldyn_database.py +++ b/process_bigraph/experiments/smoldyn_database.py @@ -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={}) + +