Skip to content

berenslab/pygridfit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygridfit

Python port of the MATLAB gridfit function (D'Errico, 2006). Work in progress.

Installation

To install the latest tagged version:

pip install pygridfit

Or to install the development version, clone the repository and install it with pip install -e:

git clone https://github.com/berenslab/pygridfit.git
pip install -e pygridfit

By default, pygridfit uses scipy.sparse.linalg.spsolve to solve sparse matrices, which can be slow. For better performance, you can manually install the additional dependencies of scikit-sparse first:

# mac
brew install suite-sparse

# debian
sudo apt-get install libsuitesparse-dev

then run:

pip install -e pygridfit[scikit-sparse]

Usage

See the example notebook for usage.