Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kambiz Tavabi ktavabi

🏠
Working from home
View GitHub Profile
View Keybase.md

Keybase proof

I hereby claim:

  • I am ktavabi on github.
  • I am ktavabi (https://keybase.io/ktavabi) on keybase.
  • I have a public key ASDfx1uYa6Pbzq6hMXPsi1cmRYHRnaFE53NxmAL83f9shgo

To claim this, I am signing this object:

@ktavabi
ktavabi / README-Template.md
Created Mar 20, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ktavabi
ktavabi / CUDA setup
Created May 6, 2016
Command history for setting up CUDA on Linux 14.04
View CUDA setup
# query nvidia card
lspci -vnn | grep -i VGA -A 12
# install nvidia driver 352.63
sudo apt-get install nvidia-352
sudo reboot
# Download OS-Arch CUDA Toolkit package from https://developer.nvidia.com/cuda-downloads
cd ~/Downloads
wget -O cuda.deb http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb
@ktavabi
ktavabi / meg_mri_transform
Created Apr 1, 2016
Test case for transforming dipole locations from MEG subject head coordinates to MRI template (+RAS) head coordinates.
View meg_mri_transform
import numpy as np
from os import path as op
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import mne
from mne.bem import (_fit_sphere, fit_sphere_to_headshape)
def transform(loc_headcoord_subj, ctr_sphere_headcoord_subj, rad_template,
ctr_sphere_headcoord_template, rad_subj):
# remove offset to sphere from head coordinates (+RAS)
@ktavabi
ktavabi / am_tone_group.ipynb
Created Mar 12, 2016
Testing effect of transforms on grand average ERF topography
View am_tone_group.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View kubi_td_group.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View circular_data_functions.py
"""
=========================================================
circular data analysis functions
=========================================================
"""
# Authors : Anne Kosem and Alexandre Gramfort
# License : Simplified BSD
View ERF Stats
# -*- coding: utf-8 -*-
"""mnefun ERF statistics routines for (TD/IBIS) infant known/unknown spoken word perception study"""
# Authors: Kambiz Tavabi <ktavabi@gmail.com>
# License: BSD (3-clause)
import os
import matplotlib.pyplot as plt
from os import path as op
View plot_compare_label_extraction.py
""" check single trial morphing + time series extraction
The Problem
-----------
establish equivalence across morphing + label extraction paths
mode : single trial, single trial averaged, evoked
morphing : sample, fsaverage