Skip to content

Instantly share code, notes, and snippets.

View mmagnuski's full-sized avatar

Mikolaj Magnuski mmagnuski

View GitHub Profile
import PIL
import time
import numpy as np
import pyscreenshot as scr
# TODOs:
# - [ ] ctypes.windll.InpOut32 for LPT trigger
# - [ ] activate only on blank to non-blank change
# - [ ]
state = False
@mmagnuski
mmagnuski / glue_proc.py
Created May 22, 2016 18:14
Short script that glues together three experimental procedures. Two of the three procedures are presented in random order, same key-mappings are ensured across procedures.
# -*- encoding: utf-8 -*-
from __future__ import print_function
import random
from psychopy import core, visual, event
from OpenClose import run_baseline as bsln
import TurboSternberg as strn
import LinOrd as lin
import os
import pandas as pd
PTH = r'C:\Users\Ola\Downloads\muse'
fls = os.listdir(PTH)
muse = pd.read_csv(op.join(PTH, fls[0]))
raws = [col for col in muse.columns if 'RAW' in col]
muse.TimeStamp = pd.to_datetime(muse.TimeStamp)