def init(self): VisualP300.init(self) self.display_radius = self.DEFAULT_DISPLAY_RADIUS self.nr_elements = self.DEFAULT_NR_ELEMENTS # Graphical settings #self.speller_fade_time = 1500 # How long speller is faded in/out self.pygame_info = False self.bgcolor = 0, 0, 0 self.screenWidth, self.screenHeight = 1280, 1024 self.canvasWidth, self.canvasHeight = 660, 820 self.fullscreen = True # Hex speller settings # Hex level can be 0 (group level) or 1 (element level) self.hex_time = 100 # Time for each circle takes to enter the stage # Arrange letters so that the gap ' ' is always pointing to the center of the display self.hex_letters = ("CDE AB", "GHIJ F", "KLMNO ", " PQRST", "Y UVWX", ".< Z,_") # Words (chosen such that each letter in English alphabet at least one time) self.words = [ "WINKT", "FJORD", "LUXUS", "SPHINX", "QUARZ", "VODKA", "YACHT", "GEBOT", "MEMME" ] # Overwritten members of VisualP300 self.word_time = 50 # How long word is shown (# fps) self.word_time_ms = 2500 # word time in ms self.min_dist = 2 # Min number of intermediate flashes bef. a flash is repeated twice self.flash_duration = 3 # 5 frames @60 Hz = 83ms flash self.soa = 5 self.hex_countdown = [ 4, 0 ] # How many seconds countdown before level 1 and level 2 self.nr_sequences = 10 self.trial_nr = 1 # Timing self.animation_time = 20 # Length of animation in #frames # Triggers for Level 1 (letter groups) and Level 2 (individual letters) self.hex_group_triggers = [[11, 12, 13, 14, 15, 16], [21, 22, 23, 24, 25, 26]] # If a certain group is a target, this value will be added to the trigger self.trigger_target_add = 20 # For data logging (-> the data file is opened in pre_mainloop) self.datafilename = "Feedbacks\ERP\data\datafile_hex.txt" self.datafile = None self.fps = 30 # Eye tracker self.use_eyetracker = False self.et_fixate_center = True # Whether center or fixdot has to be fixated self.et_currentxy = (0, 0) # Current fixation self.et_duration = 100 self.et_targetxy = (100, 100) # Target coordinates self.et_range = 100 # Maximum acceptable distance between target and actual fixation self.et_range_time = 200 # maximum acceptable fixation off the designated point
def init(self): VisualP300.init(self) # Graphical settings self.pygame_info = False self.bgcolor = 0, 0, 0 self.screenWidth, self.screenHeight = 1280, 1024 self.canvasWidth, self.canvasHeight = 600, 820 self.fullscreen = True # Words #self.words = ["WINKT","FJORD","HYBRID","LUXUS","SPHINX","QUARZ","VODKA","YACHT","GEBOT","MEMME"] self.words = ["XBCI"] self.current_word = 0 # Index of current word self.current_letter = 0 # Index of current letter # Speller settings self.rows = self.DEFAULT_ROWS self.cols = self.DEFAULT_COLS self.matrix_width = self.DEFAULT_MATRIX_WIDTH self.matrix_height = self.DEFAULT_MATRIX_HEIGHT self.letters = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ_,.<") self.countdown = 2 # countdown length in seconds # Overwritten members of VisualP300 self.word_time = 50 # How long word is shown (#fps) self.word_time_ms = 2500 # word time in ms self.min_dist = 2 # Min number of intermediate flashes bef. a flash is repeated twice self.flash_duration = 3 self.soa = 5 self.countdown = 4 self.nr_sequences = 10 self.trial_nr = 1 self.fps = 30 # Triggers for Level 1 (letter groups) and Level 2 (individual letters) self.matrix_trigger = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] # If a certain group is a target, this value will be added to the trigger self.trigger_target_add = 20 # For data logging (-> the data file is opened in pre_mainloop) self.datafilename = "Feedbacks\ERP\data\datafile_matrix.txt" self.datafile = None # Eye tracker self.use_eyetracker = False self.et_fixate_center = True # Whether center or fixdot has to be fixated self.et_currentxy = (0, 0) # Current fixation self.et_duration = 100 self.et_targetxy = (0, 0) # Target coordinates self.et_range = 100 # Maximal acceptable distance between target and actual fixation self.et_range_time = 200 # maximum acceptable fixation off the designated point
def init(self): VisualP300.init(self) self.display_radius = self.DEFAULT_DISPLAY_RADIUS self.nr_elements = self.DEFAULT_NR_ELEMENTS # Graphical settings #self.speller_fade_time = 1500 # How long speller is faded in/out self.pygame_info = False self.bgcolor = 0, 0, 0 self.screenWidth, self.screenHeight = 1280, 1024 self.canvasWidth, self.canvasHeight = 660, 820 self.fullscreen = True # Hex speller settings # Hex level can be 0 (group level) or 1 (element level) self.hex_time = 100 # Time for each circle takes to enter the stage # Arrange letters so that the gap ' ' is always pointing to the center of the display self.hex_letters = ("CDE AB", "GHIJ F", "KLMNO ", " PQRST", "Y UVWX", ".< Z,_") # Words (chosen such that each letter in English alphabet at least one time) self.words = ["WINKT", "FJORD", "LUXUS", "SPHINX", "QUARZ", "VODKA", "YACHT", "GEBOT", "MEMME"] # Overwritten members of VisualP300 self.word_time = 50 # How long word is shown (# fps) self.word_time_ms = 2500 # word time in ms self.min_dist = 2 # Min number of intermediate flashes bef. a flash is repeated twice self.flash_duration = 3 # 5 frames @60 Hz = 83ms flash self.soa = 5 self.hex_countdown = [4, 0] # How many seconds countdown before level 1 and level 2 self.nr_sequences = 10 self.trial_nr = 1 # Timing self.animation_time = 20 # Length of animation in #frames # Triggers for Level 1 (letter groups) and Level 2 (individual letters) self.hex_group_triggers = [ [11, 12, 13, 14, 15, 16] , [21, 22, 23, 24, 25, 26] ] # If a certain group is a target, this value will be added to the trigger self.trigger_target_add = 20 # For data logging (-> the data file is opened in pre_mainloop) self.datafilename = "Feedbacks\ERP\data\datafile_hex.txt" self.datafile = None self.fps = 30 # Eye tracker self.use_eyetracker = False self.et_fixate_center = True # Whether center or fixdot has to be fixated self.et_currentxy = (0, 0) # Current fixation self.et_duration = 100 self.et_targetxy = (100, 100) # Target coordinates self.et_range = 100 # Maximum acceptable distance between target and actual fixation self.et_range_time = 200 # maximum acceptable fixation off the designated point
def init(self): VisualP300.init(self) self.display_radius = self.DEFAULT_DISPLAY_RADIUS self.nr_elements = self.DEFAULT_NR_ELEMENTS # Graphical settings #self.speller_fade_time = 1500 # How long speller is faded in/out self.pygame_info = False self.bgcolor = 0, 0, 0 self.screenWidth, self.screenHeight = 1000, 800 self.canvasWidth, self.canvasHeight = 660, 820 self.fullscreen = False # Hex speller settings self.offline = False # Hex level can be 0 (group level) or 1 (element level) self.hex_time = 100 # Time for each circle takes to enter the stage # Arrange letters so that the gap ' ' is always pointing to the center of the display self.hex_letters = ("CDE AB", "GHIJ F", "KLMNO ", " PQRST", "Y UVWX", ".< Z,_") self.offline_word = "Fourier" # Overwritten members of VisualP300 self.word_time = 200 # How long word is shown (# fps) self.word_time_ms = 2500 # word time in ms self.min_dist = 2 # Min number of intermediate flashes bef. a flash is repeated twice self.hex_countdown = [4, 1] # How many seconds countdown before level 1 and level 2 self.nr_sequences = 10 self.trial_nr = 1 # Timing self.animation_time = 20 # Length of animation in #frames # Triggers for Level 1 (letter groups) and Level 2 (individual letters) self.hex_group_triggers = [ [11, 12, 13, 14, 15, 16] , [21, 22, 23, 24, 25, 26] ] self.stimuli_colors = [[255,0,0], [0,255,0], [0,0,255],[255,255,0],[255,0,255], [0,255,255]]; # If a certain group is a target, this value will be added to the trigger self.trigger_target_add = 20 self.fps = 50 self._classified_element = -1 self.hex_nr = -1 self.selected_letter = '';