Skip to content

Commit

Permalink
Add missing parameters to the simulation params file
Browse files Browse the repository at this point in the history
  • Loading branch information
lawhead committed Sep 23, 2024
1 parent 7fc3a01 commit 226c4cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bcipy/simulator/task/task_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from bcipy.helpers.language_model import init_language_model
from bcipy.helpers.load import load_json_parameters, load_signal_models
from bcipy.helpers.parameters import DEFAULT_PARAMETERS_PATH
from bcipy.signal.model.base_model import SignalModel
from bcipy.simulator.data.data_engine import RawDataEngine
from bcipy.simulator.data.data_process import init_data_processor
Expand Down Expand Up @@ -33,6 +34,9 @@ def __init__(self,
logger.info("Loading parameters")
self.parameters = load_json_parameters(self.params_path,
value_cast=True)
default_params = load_json_parameters(DEFAULT_PARAMETERS_PATH, value_cast=True)
# TODO: log which parameters were added
self.parameters.add_missing_items(default_params)

logger.info("Loading signal models")
self.signal_models = load_signal_models(directory=self.model_path)
Expand Down

0 comments on commit 226c4cc

Please sign in to comment.