Coder Social home page Coder Social logo

pydstool's Introduction

PyDSTool v0.88

Build Status

Coverage Status

April 2014. This is a beta release version.


Requirements

Dopri/Radau and AUTO interface requirements

  • swig > 2.0;
  • C compiler (e.g, gcc or clang);
  • GNU Fortran compiler (Radau only).

Optional requirements

  • matplotlib Matplotlib is needed for plotting functionality and running many of the examples.

Installation

Debian/Ubuntu

  • install necessary packages:

    sudo apt-get update
    sudo apt-get install -qq gfortran swig
    sudo apt-get install -qq python-numpy python-scipy python-matplotlib
  • install PyDSTool:

    sudo python setup.py install

    or

    sudo python setup.py develop

    Run without sudo and add flag --user to install for local user only.

Getting started and documentation

See the online documentation, particularly the GettingStarted and Tutorials pages! Please report bugs and suggestions using the user forum linked to there.

Full API documentation can be found locally here. It is auto-generated from the source code using Epydoc and is meant as a reference for functions and classes only.

Tests and examples

Running examples

Examples can be found in the examples directory. Some examples can only be run once, others have produced their output, for instance HH_loaded.py, HH_loaded_dopri.py. Several of the examples require an external compiler. An easy way to run all the examples in an appropriate order is to run the script 'run_all_tests.py':

cd examples
python run_all_tests.py

There is a simple option in that file that you may need to edit in order to select whether the external compiler tests should be run (in case you do not have gcc and gfortran working on your system).

Note that on some platforms you will see an error report when the script tries to automatically close matplotlib graph windows, to the effect of:

"Fatal Python error: PyEval_RestoreThread: NULL tstate"

This error can be ignored. You may also have to close the plot windows yourself before the script can continue. This will depend on your platform and settings.

Running test suite

To run test suite, install py.test and mock, using pip:

sudo pip install py.test mock

or package manager:

sudo apt-get install python-pytest python-mock

Then run:

python setup.py test

Getting coverage report

  • install pytest-cov

    sudo pip install pytest-cov
  • run py.test

    py.test --cov PyDSTool --cov-report html --cov-config .coveragerc
  • open file htmlcov/index.html in your browser

Change histories

Older (pre-git) version change histories appear in the bzr repository browser, and some older information is in the headers of each source file. An overview of the changes in a new release can be found in the SourceForge release notes.


Credits

Coding and design by Robert Clewley, Erik Sherwood, Drew LaMar, Vladimir Zakharov, and John Guckenheimer, except where otherwise stated in the code or documentation. (Several other open source codes have been redistributed here under the compatible licenses.)

pydstool's People

Contributors

robclewley avatar z2v avatar

Watchers

 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.