mar. 22 janvier 2019

Conda Basics

Concepts We list here some basic commands to manage environments with conda. Conda is a package manager and environment manager. It is included with the Anaconda Python distribution. Thus you should have already installed Anaconda A conda environment is a directory that contains a specific collection of conda packages that …

jeu. 17 janvier 2019
Tags : networkx python

Cartography with the NetworkX library

Networkx is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. Tutorial on Datacamp : network-analysis-in-python-part-1 The following image was generated with networkx. It shows a map of the different scripts in both Python and Matlab: The projects sharing keywords between one …

jeu. 17 janvier 2019

Spike Sorting Animation

Github link : https://github.com/tinmarD/SpikeSortingAnimation These scripts illustrate the spike-sorting process using Python and pygame. spikesorting_game_1.py shows the raw signal on 1 tetrode spikesorting_game_1_2.py shows both the raw and filtered signal (~300-3000Hz) spikesorting_game_2.py shows the raw signal on top and the action potential after spike …

mer. 16 janvier 2019
Tags : Git

Git - Update your code

How to use git to update your code Git is a free and open source distributed version control system. It allows you to get some code from repositories like github and to easily update your code to the latest version. The first step is to install git : https://git-scm.com …

mar. 15 janvier 2019
Tags : Pelican Doc

Pelican - How to add an article

Pelican is a static site generator, written in Python. This site is based on Pelican. Documentation : http://docs.getpelican.com/en/stable/ There are a great number of tutorial on the internet explaining how to start a Pelican site. In this article we will simply see how to add an …

mar. 15 janvier 2019
Tags : Pelican Doc

Pelican - How to update the Search content

The Search tool for this site is based on Tipue Search. This tool requires the content of the site to be indexed. One way to do this is explained here but it does not seems to work when the site is publish on github pages as it is the case …

lun. 14 janvier 2019
Tags : Cython Tips

Cython - How to compile

Cython is a tool that allows you to compile your code to C, resulting in a huge speed increase. All is needed is slight modification of the python code. The Cython documentation : http://docs.cython.org/en/latest/ If you only need to compile some Cython file (.pyx extension), here …


jeu. 08 novembre 2018
Tags : Stimic notebook

Stimic - Analysis - Artefact evolution across contacts

Download the notebook : stimic_artefact_distance.py Shape evolution of the stimulation artefact along the electrode¶In this notebook, we analyse how the shape of the artefact changes when the distrance from the recording site to the stimulation site increases. In [3]: %matplotlib inline import matplotlib import numpy as np import pandas …

jeu. 08 novembre 2018

Stimic - Analysis - Artifact Carac

Download the notebook : stimic_artefact_carac.py Caracterization of the stimulation artefact¶ In [1]: %matplotlib inline import mne import pandas as pd import numpy as np import matplotlib.pyplot as plt import sys import seaborn as sns sys.path.append('../stimic_main/') import utils_stimic import utils_eeg_cleaning from stim_analysis_fun import * sns.set() sns.set_context …