Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
""" | |
PySurfer-like plotting using VisPy scene. | |
""" | |
import numpy as np | |
from vispy import scene, app | |
import mne | |
import nibabel |
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
name: hnn | |
channels: | |
- defaults | |
dependencies: | |
- python>=3.6 | |
- pip | |
- numpy | |
- scipy | |
- matplotlib | |
- cython |
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
export LANG=en_US.UTF-8 | |
# COMMON CONFS | |
# Use pgrep with full command path and display the name | |
alias checktuns="ps x | grep 'ssh -N'" | |
alias pgrep="ps x | grep " | |
# Set the scikit path env var | |
export SCIKIT_LEARN_PATH=~/raghav/code/scikit-learn |
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
# %% | |
# %matplotlib widget | |
import matplotlib.pyplot as plt | |
from matplotlib.colors import SymLogNorm | |
from mpl_toolkits.axes_grid1.inset_locator import inset_axes | |
import numpy as np | |
from neuron import h | |
from hnn_core.network_builder import load_custom_mechanisms | |
from hnn_core.lfp import _LFPElectrode |