Skip to content

Commit

Permalink
Removed parameter for VEP flicker rate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lawhead committed Dec 8, 2023
1 parent 6e9f344 commit 8cf0ce7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 2 additions & 0 deletions bcipy/display/paradigm/vep/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

log = logging.getLogger(__name__)

DEFAULT_FLICKER_RATES = [4, 5, 6, 10, 12, 15]


def create_vep_codes(length=32, count=4) -> List[List[int]]:
"""Create a list of random VEP codes.
Expand Down
8 changes: 0 additions & 8 deletions bcipy/parameters/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,6 @@
"recommended_values": "",
"type": "float"
},
"vep_flicker_rates": {
"value": "4,5,6,10,12,15",
"section": "bci_config",
"readableName": "VEP Flicker Rates (hz)",
"helpTip": "Delimited list of flash rates, where a rate represents the hz of the box at that position. Each rate should be less than the refresh rate of the monitor.",
"recommended_values": "4,5,6,10,12,15",
"type": "str"
},
"stim_jitter": {
"value": "0.0",
"section": "bci_config",
Expand Down
8 changes: 5 additions & 3 deletions bcipy/task/paradigm/vep/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
from bcipy.display import InformationProperties, VEPStimuliProperties
from bcipy.display.components.layout import centered
from bcipy.display.components.task_bar import CalibrationTaskBar
from bcipy.display.paradigm.vep.codes import round_refresh_rate, ssvep_to_code
from bcipy.display.paradigm.vep.codes import (DEFAULT_FLICKER_RATES,
round_refresh_rate,
ssvep_to_code)
from bcipy.display.paradigm.vep.display import VEPDisplay
from bcipy.display.paradigm.vep.layout import BoxConfiguration
from bcipy.helpers.clock import Clock
Expand Down Expand Up @@ -243,8 +245,8 @@ def init_calibration_display(parameters: Parameters,
font=parameters['font'],
height=parameters['task_height'])

# create codes from configuration
flicker_rates = parameters['vep_flicker_rates'].split(',')
# issue #186641183 ; determine a better configuration strategy
flicker_rates = DEFAULT_FLICKER_RATES
rate = round_refresh_rate(window.getActualFrameRate())
codes = [
ssvep_to_code(refresh_rate=rate, flicker_rate=int(hz))
Expand Down

0 comments on commit 8cf0ce7

Please sign in to comment.