This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Requires edf2asc software installed | |
""" | |
import os | |
import subprocess | |
import config | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ParseEyeLinkAsc(elFilename): | |
"""Reads in .asc data files from EyeLink and produces pandas dataframes for further analysis | |
Created 7/31/18-8/15/18 by DJ. (https://github.com/djangraw/) | |
Updated 7/4/19 by DJ - detects and handles monocular sample data. | |
dfRec,dfMsg,dfFix,dfSacc,dfBlink,dfSamples = ParseEyeLinkAsc(elFilename) | |
-Reads in data files from EyeLink .asc file and produces readable dataframes for further analysis. | |
INPUTS: | |
-elFilename is a string indicating an EyeLink data file from an AX-CPT task in the current path. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Crear multiples dataframes en base a las columnas de uno en una sola línea | |
import pandas as pd | |
# Creo el DataFrame | |
df = pd.DataFrame({'ingresos': [2,4], | |
'egresos': [1,5], | |
'compras': ['cosas','otras cosas'] | |
}) | |
# Agrupo por columnas dentro de la list comprehension |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>eye tracking</title> | |
<script src="webgazer.js" type="text/javascript" ></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var trial_procedure = { | |
timeline: [ | |
{ | |
type: "canvas-keyboard-response", | |
stimulus: function (c) { | |
var ctx = c.getContext("2d"); | |
ctx.beginPath(); | |
ctx.fillStyle = jsPsych.timelineVariable("color"); | |
ctx.fillRect( | |
jsPsych.timelineVariable("upper_left_x"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* plugin for jsPsych based in Qisheng Li 11/2019. /// https://github.com/QishengLi/virtual_chinrest | |
Modified by Gustavo Juantorena 08/2020 // https://github.com/GEJ1 | |
Contributions from Peter J. Kohler: https://github.com/pjkohler | |
*/ | |
jsPsych.plugins['virtual-chinrest'] = (function() { |
NewerOlder