Skip to content

sf-issues/topographica

 
 

Repository files navigation

TOPOGRAPHICA

Topographica is a general-purpose neural simulator focusing on topographic maps. The simulator is under continuous development, and scripts developed for one version are likely to need modification to run with subsequent versions. Saved snapshot files will often continue to work with new versions, but they are not guaranteed to do so.

This program is free, open-source software available under the BSD license (see LICENSE.txt).

This document describes how to get and edit the Topographica source code. Most first-time users will instead want to use the pre-packaged distributions available for most platforms; see ioam/topographica Downloads for links.

CLONING TOPOGRAPHICA

Topographica on GitHub uses submodules. Please clone as follows:

git clone git://github.com/ioam/topographica.git
cd topographica
git submodule update --init

The clone command above is read-only, to push changes set up your SSH key and clone with:

git clone git@github.com:ioam/topographica.git
cd topographica
git submodule update --init

If dependencies are missing, you can install them using pip. Pip is available on most systems already, but if it is missing or if the installed version is old, you can install it using "easy_install pip" or the equivalent for your package manager. The only required dependencies are numpy and PIL, which can be installed using pip install numpy PIL, but other highly recommended packages include scipy, ipython, and matplotlib, which can be installed in the same way.

BUILDING DOCUMENTATION (OPTIONAL)

To read more about Topographica before trying to build it, you can build the documentation separately from compiling Topographica itself. If PHP4, m4, bibtex, convert, and fig2dev are installed on your system (as in most Linux distributions), just change to the doc subdirectory of the topographica directory and type "make default reference-manual". (This step is only necessary when building from Git; released versions include the documentation already built.)

Once the documentation has been built, load doc/index.html into your web browser. If there are any problems generating or reading the local copy, you can instead use the web-based documentation at topographica.org. (The doc/ directory is just a copy of the website, although the web site will not necessarily match this particular copy of Topographica.)

Alternatively, for each .html you can simply read the corresponding source file _text.php in a text editor.

BUILDING TOPOGRAPHICA (OPTIONAL)

As long as all the dependencies have been installed as described above, no separate build step is needed -- all core Topographica files are pure Python, and any optimized C files will be compiled on the fly as needed by Topographica.

Alternatively, the dependencies can all be built from source, by changing to the "external" directory and typing make default. All non-standard external libraries will be fetched automatically and for most platforms will be built from source. This approach makes the initial compilation time longer and the simulator directory larger, but it minimizes the changes necessary for specific platforms and operating system versions. For specific instructions, see the "Build all Topographica's dependencies" and "Building Topographica" sections in doc/Developer_Manual/installation.html.

If you use this Makefile, you will need to prepend the absolute path of ./topographica/bin/python to your PATHenvironment variable in order to make use of the packages you have built.

export PATH=$PATH:<PATH TO ./topographica/bin/python>

RUNNING TOPOGRAPHICA

Once installed as described above, Topographica can be launched by running the "topographica" script in the main directory. See doc/Tutorials/index.html for examples of getting started with Topographica, and doc/index.html for all of the documentation. You can also get online help from the Topographica command line using help(), or from the shell command line using "./bin/pydoc some-text".

About

A general-purpose neural simulator focusing on topographic maps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published