Skip to content

Instantly share code, notes, and snippets.

@borismarin
borismarin / instala_pp.sh
Last active March 23, 2020 23:29
Instalando psychopy num ambiente virtual (Ubuntu 18)
sudo apt install libwebkitgtk-3.0-dev ffmpeg libsdl1.2-dev #bibliotecas do sitema necessárias para psychopy
python3 -m venv teste_psychopy
source teste_psychopy/bin/activate
pip install pyqt5==5.14 # o pyqt mais recente está quebrado...
pip install psychopy
# atenção: no passo abaixo, vc precisa usar o pacote certo para sua versão do pyyhon
# veja https://docs.google.com/document/d/1Hk2Cj2sUOtVAp4jyyCq2_aIdxM3kmkzNa4MW24il30o/ para detalhes
pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.7.post2-cp36-cp36m-linux_x86_64.whl
sudo apt install libusb-1.0-0-dev portaudio19-dev libasound2-dev #bibliotecas do sitema necessárias para psychtoolbox
pip install psychtoolbox
@borismarin
borismarin / one.md
Created January 2, 2018 21:16
Lascon VII tutorial - Dynamical Systems

Tutorial I: one dimensional dynamics

Warming up

Numerical integration of the i&f model \tau\dot{v}=-(v-\text{I})

  • raise f-I curve
  • compare to analytical solution (direct integration)

Up and down

  • sketch (by hand!) 1d dynamics compatible with up/down states (see images below)
@borismarin
borismarin / square_burst_fast.ode
Last active January 2, 2018 21:09
xpp tutorial - bursts
# Fast Subsystem of the Nap-K-KM model
dV/dt = (I - g_Na*minf(V)*(V-V_Na) - g_K*n*(V-V_K) - g_KM*o*(V-V_K) - g_leak*(V-V_leak))/C
dn/dt = (ninf(V) - n)/tau
v(0)=-16
n(0)=0.01
minf(v)=boltz(v,vhalf_minf,k_minf)
ninf(v)=boltz(v,vhalf_ninf,k_ninf)
boltz(v,vh,k)=1/(1+exp((vh-v)/k))

Exploring planar systems with xpp

These are just suggestions. Trust your instincts!