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 | |
from scipy.signal import resample | |
import pycuda.autoinit | |
from pycuda import gpuarray | |
from scikits.cuda import fft as cudafft | |
from scipy.fftpack import fft, ifft | |
try: | |
import pyfftw | |
except Exception: | |
have_fftw = False |
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
========================== BESSELF ========================= | |
z = | |
Empty matrix: 0-by-1 | |
p = | |
-3.000000000000000e-01 | |
k = | |
3.000000000000000e-01 | |
z = | |
Empty matrix: 0-by-1 | |
p = |
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
clear all; close all; clc | |
format long e | |
format compact | |
[z, p, k] = ellip(5, 1, 40, [201 240], 'stop', 's') | |
[z, p, k] = cheby2(5, 20, [2010 2100], 'stop', 's') | |
[z, p, k] = cheby1(23, 0.8, 0.3, 'high') % high odd order | |
[z, p, k] = besself(1, 1) | |
[z, p, k] = besself(24, 100) | |
[z, p, k] = besself(23, 1000) |
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
# -*- coding: utf-8 -*- | |
import numpy as np | |
from vispy.gloo import gl | |
from vispy.app import Canvas | |
v1 = """ | |
#version 120 | |
attribute vec2 pos; attribute vec3 color; varying vec4 f_color; | |
void main() { | |
gl_Position = vec4(pos, 0, 1.0); |
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
# -*- coding: utf-8 -*- | |
""" | |
Test covariance generation | |
""" | |
from __future__ import print_function | |
from os import path as op | |
import warnings | |
import numpy as np |
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
larsoner@bunk:~/python/scitran$ sudo cat data/log/api.log | |
*** Starting uWSGI 2.0.9 (64bit) on [Fri Feb 27 23:36:18 2015] *** | |
compiled with version: 4.8.2 on 13 February 2015 21:55:28 | |
os: Linux-3.16.0-31-generic #41-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015 | |
nodename: 255bd8853797 | |
machine: x86_64 | |
clock source: unix | |
detected number of CPU cores: 12 | |
current working directory: / | |
detected binary path: /usr/local/bin/uwsgi |
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
# -*- coding: utf-8 -*- | |
""" | |
================================================ | |
Compare dipole fits between MNE-C and mne-python | |
================================================ | |
This creates a small grid of source locations and performs dipole | |
fits using both MNE-C and mne-python. | |
""" | |
# Author: Eric Larson <[email protected]> |
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
# -*- coding: utf-8 -*- | |
""" | |
Examine if a 2x window length is appropriate for savgol filtering. | |
""" | |
from scipy.signal import savgol_filter | |
from scipy import fftpack | |
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.ion() |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Mar 24 22:53:59 2015 | |
@author: larsoner | |
""" | |
from __future__ import division | |
from collections import namedtuple | |
import numpy as np |
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
# -*- coding: utf-8 -*- | |
"""Script to determine the drift of the PyXID box""" | |
import numpy as np | |
import pyxid | |
import time | |
import matplotlib.pyplot as plt | |
n_run = 50 | |
dur = 60. # seconds |
OlderNewer