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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import os | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from scipy import ndimage, interpolate, misc | |
from exparser import TraceKit as tk | |
from skimage import draw |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
from exparser.DataMatrix import DataMatrix | |
from generate import edgeDetect | |
import os | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from scipy import ndimage, interpolate, misc | |
from exparser import TraceKit as tk |
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
# Generated by OpenSesame 2.9.1~pre2 (Hesitant Heisenberg) | |
# Thu Nov 06 16:30:44 2014 (nt) | |
# <http://www.cogsci.nl/opensesame> | |
set foreground "white" | |
set subject_parity "even" | |
set description "A template containing a practice and an experimental phase" | |
set title "Extended template" | |
set compensation "0" | |
set coordinates "relative" |
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
# Generated by OpenSesame 2.9.1 (Hesitant Heisenberg) | |
# Mon Nov 17 19:35:08 2014 (posix) | |
# <http://www.cogsci.nl/opensesame> | |
set mouse_backend "xpyriment" | |
set subject_parity "even" | |
set height "768" | |
set font_italic "no" | |
set canvas_backend "xpyriment" | |
set synth_backend "legacy" |
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
# Generated by OpenSesame 2.9.1 (Hesitant Heisenberg) | |
# Mon Nov 24 14:31:04 2014 (posix) | |
# <http://www.cogsci.nl/opensesame> | |
set mouse_backend "xpyriment" | |
set subject_parity "even" | |
set height "768" | |
set font_family "mono" | |
set font_italic "no" | |
set synth_backend "legacy" |
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
#!/usr/bin/env python | |
from matplotlib import pyplot as plt | |
from exparser import TraceKit as tk | |
import numpy as np | |
def findPeak(a, searchRange, smoothing=201, N=1000, plot=False): | |
""" | |
desc: | |
Get the peak of a series of data. |
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
#!/usr/bin/env python | |
import os | |
from matplotlib import pyplot as plt | |
import numpy as np | |
from scipy.optimize import curve_fit | |
from exparser import Fitting | |
def fitGEPPoly(x, y, thr=90, deg=2, res=100, plot=True): |
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
# *** | |
# * Continuously poll the keyboard | |
# *** | |
from openexp.keyboard import keyboard | |
my_keyboard = keyboard(self.experiment, timeout=20) | |
start_time = self.time() | |
while True: | |
# Perform some task here | |
key, end_time = my_keyboard.get_key() |
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
# Generated by OpenSesame 0.25 (Dashy Darwin) | |
# Thu Dec 15 11:06:26 2011 (posix) | |
# | |
# Copyright Sebastiaan Mathot (2010-2011) | |
# <http://www.cogsci.nl> | |
# | |
set foreground "white" | |
set subject_parity "even" | |
set description "A template containing a practice and an experimental phase" | |
set title "Repeat trials" |
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
#!/bin/bash | |
# Fix the backlight issue on Ubuntu 11.10 for | |
# a HP G62 laptop. Add this script to the startup | |
# applications. In addition, make sure to make | |
# /sys/class/backlight/intel_backlight | |
# world-writable (chmod 777), for example | |
# in /etc/rc.local | |
# | |
# Examples: |
OlderNewer