diff --git a/bcipy/simulator/task/copy_phrase.py b/bcipy/simulator/task/copy_phrase.py index 1d78c44e..db4ea3c9 100644 --- a/bcipy/simulator/task/copy_phrase.py +++ b/bcipy/simulator/task/copy_phrase.py @@ -1,5 +1,6 @@ """Simulates the Copy Phrase task""" from typing import Dict, List, Optional, Tuple +import logging from bcipy.display.main import Display from bcipy.feedback.visual.visual_feedback import VisualFeedback @@ -39,6 +40,7 @@ def __init__(self, parameters: Parameters, file_save: str, fake=False) self.save_session_every_inquiry = False self.samplers = samplers + self.logger = logging.getLogger(__name__) def init_evidence_evaluators( self, signal_models: List[SignalModel]) -> List[EvidenceEvaluator]: diff --git a/bcipy/task/paradigm/rsvp/copy_phrase.py b/bcipy/task/paradigm/rsvp/copy_phrase.py index 6aa62357..f66f47cd 100644 --- a/bcipy/task/paradigm/rsvp/copy_phrase.py +++ b/bcipy/task/paradigm/rsvp/copy_phrase.py @@ -527,7 +527,7 @@ def check_stop_criteria(self) -> bool: target_text=self.copy_phrase, spelled_text=self.spelled_text) >= self.parameters.get( 'max_incorrect'): - self.logger.info( + logger.info( 'Max number of consecutive incorrect selections reached ' '(configured with the max_incorrect parameter)') return False