Skip to content

Commit

Permalink
fix logger assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
tab-cmd committed Oct 2, 2024
1 parent ac3d5ab commit a531946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bcipy/simulator/task/copy_phrase.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion bcipy/task/paradigm/rsvp/copy_phrase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a531946

Please sign in to comment.