Skip to content

Commit

Permalink
Fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lawhead committed Nov 2, 2024
1 parent 3882e19 commit 95a12b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bcipy/task/paradigm/rsvp/copy_phrase.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ def compute_button_press_evidence(
"""
if (not self.should_compute_button_press_evidence()):
return None
assert self.current_inquiry, "Current inquiry is required"
probs = compute_probs_after_preview(
self.current_inquiry.stimuli[0],
self.alp,
Expand All @@ -696,8 +697,8 @@ def compute_button_press_evidence(

def should_compute_button_press_evidence(self) -> bool:
"""Determine if button press evidence should be computed"""
return self.parameters["show_preview_inquiry"] and self.parameters[
'preview_inquiry_progress_method'] > 0 and self.current_inquiry
return bool(self.parameters["show_preview_inquiry"] and self.parameters[
'preview_inquiry_progress_method'] > 0 and self.current_inquiry)

def compute_device_evidence(
self,
Expand Down

0 comments on commit 95a12b2

Please sign in to comment.