Giter Site home page Giter Site logo

touchsim's Introduction

TouchSim

A Python implementation of the TouchSim model to simulate peripheral tactile responses. For details on the model, please see Saal, Delhaye et al., PNAS, 2017.

Try it online

Click on the badge below to open a fully functional tutorial notebook in your browser using myBinder: Binder

Note: The notebook usually starts in less than 30 seconds, however it can take around 10 minutes if the repository has recently been updated and a new environment needs to be created (evident if the log appears stuck on 'Solving environment').

Installation

The touchsim package requires Python 3.6 or higher to run. It also requires numpy, scipy, skikit-image, numba, and matplotlib. Additionally, holoviews is required to use the simulation's inbuilt plotting functions.

If using conda for package management, the following command creates a new environment ts with all dependencies installed: conda env create -f environment.yml

To install a static version of the package, use python setup.py install. To install the package in development mode (such that updates to the source directory are reflected in the installed package), use python setup.py develop.

If pytest is installed, running pytest from the base directory will test whether the package is working as intended.

Using the package

Examples of how to use the model and its plotting functions are given as Jupyter notebooks in the base directory, see the general tutorial, plotting demo, and list of overloaded functions.

touchsim's People

Contributors

hsaal avatar donghwui 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.