Commit b7a613c9 authored by Lukas's avatar Lukas
Browse files

debug

parent df4e6e4c
......@@ -342,7 +342,7 @@ def get_fix_sacc_fix_data(verbose=True):
# Loop over all directories in /data/full_data and extract and concat the events from all people
if config['data_mode'] == 'fix_sacc_fix':
rootdir = './data/processing_speed_task_full_data' # modify it if necessary
rootdir = './data/full_data_processing_speed_task' # modify it if necessary
elif config['data_mode'] == 'calib_task_fix_sacc_fix':
rootdir = './data/calibration_task'
else:
......@@ -353,6 +353,7 @@ def get_fix_sacc_fix_data(verbose=True):
for subdir, dirs, files in os.walk(rootdir):
for file in files:
print(file)
# Get the correct path to the current file
path = os.path.join(subdir, file)
events = load_sEEG_events(path) # access event i via events[i]
......@@ -463,7 +464,7 @@ def get_fix_sacc_fix_data(verbose=True):
y_list.append(y_datapoint)
X = np.asarray(x_list)
X = X[:,:,:129] # Cut off the last 4 columns (time, x, y, pupil size)
#X = X[:,:,:129] # Cut off the last 4 columns (time, x, y, pupil size)
# Normalize the data
norm = np.linalg.norm(X)
X = X / norm
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment