GithubHelp home page GithubHelp logo

aritrasinha108 / hnn-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonescompneurolab/hnn-core

0.0 0.0 0.0 73.86 MB

Simulation and optimization of neural circuits for MEG/EEG source estimates

Home Page: https://jonescompneurolab.github.io/hnn-core/

License: BSD 3-Clause "New" or "Revised" License

Python 96.78% Makefile 0.08% AMPL 2.90% Jupyter Notebook 0.24%

hnn-core's Introduction

hnn-core

tests CircleCI Codecov PyPI Gitter

HNN-GUI

This is a leaner and cleaner version of the code based off the HNN repository.

It is early Work in Progress. Contributors are very welcome.

Dependencies

hnn-core requires Python (>=3.0) and the following packages:

  • numpy
  • scipy
  • matplotlib
  • Neuron (>=7.7)

Optional dependencies

GUI

  • ipywidgets (<=7.7.1)
  • voila (<=0.3.6)

Parallel processing

  • joblib (for simulating trials simultaneously)
  • mpi4py (for simulating the cells in parallel for a single trial). Also depends on:
    • openmpi or other mpi platform installed on system
    • psutil

Installation

We recommend the Anaconda Python distribution. To install hnn-core, simply do:

$ pip install hnn_core

and it will install hnn-core along with the dependencies which are not already installed.

Note that if you installed Neuron using the traditional installer package, it is recommended to remove it first and unset PYTHONPATH and PYTHONHOME if they were set. This is because the pip installer works better with virtual environments such as the ones provided by conda.

If you want to track the latest developments of hnn-core, you can install the current version of the code (nightly) with:

$ pip install --upgrade https://api.github.com/repos/jonescompneurolab/hnn-core/zipball/master

To check if everything worked fine, you can do:

$ python -c 'import hnn_core'

and it should not give any error messages.

GUI installation

To install the GUI dependencies along with hnn-core, a simple tweak to the above command is needed:

$ pip install hnn_core[gui]

Note if you are zsh in macOS the command is:

$ pip install hnn_core'[gui]'

To start the GUI, please do:

$ hnn-gui

Parallel backends

For further instructions on installation and usage of parallel backends for using more than one CPU core, refer to our parallel backend guide.

Note for Windows users

Install Neuron using the precompiled installers before installing hnn-core. Make sure that:

$ python -c 'import neuron;'

does not throw any errors before running the install command. If you encounter errors, please get help from NEURON forum. Finally, do:

$ pip install hnn_core[gui]

Documentation and examples

Once you have tested that hnn_core and its dependencies were installed, we recommend downloading and executing the example scripts provided on the documentation pages (as well as in the GitHub repository).

Note that python plots are by default non-interactive (blocking): each plot must thus be closed before the code execution continues. We recommend using and 'interactive' python interpreter such as ipython:

$ ipython --matplotlib

and executing the scripts using the %run-magic:

%run plot_simulate_evoked.py

When executed in this manner, the scripts will execute entirely, after which all plots will be shown. For an even more interactive experience, in which you execute code and interrogate plots in sequential blocks, we recommend editors such as VS Code and Spyder.

Bug reports

Use the github issue tracker to report bugs. For user questions and scientific discussions, please join the HNN Google group.

Interested in Contributing?

Read our contributing guide.

Roadmap

Read our roadmap.

hnn-core's People

Contributors

jasmainak avatar ntolley avatar rythorpe avatar cjayb avatar chenghuzi avatar blakecaldwell avatar kenloi avatar kohl-carmen avatar mohdsherif avatar spbrandt avatar orbekolo avatar samikane avatar alexrockhill avatar stephanie-r-jones avatar dylansdaniels avatar mjpelah avatar mkhalil8 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.