This file contains hidden or 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
import sys | |
import os | |
import time | |
import datetime | |
from random import random as rand | |
from pylsl import StreamInfo, StreamOutlet, local_clock | |
import msvcrt # Windows-specific module for capturing keypresses | |
def write_csv(filename, unixTime, stim): | |
''' |
This file contains hidden or 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import random | |
import time | |
class clustering(object): | |
"""docstring for clustering""" | |
def __init__(self, data, nCluster): | |
self.data = data | |
self.nCluster = nCluster |