Skip to content

Commit 3bb7827

Browse files
mwaskomagramfort
authored andcommitted
Add basic volume example and clarify basic surface example
Adding underlying files for logo Adapting MNE Python gen_rst sphinxext for thumbnails Change name of label example for ordering Change name of contour example for ordering Fix gen_rst so example index isn't double-headered Delete montage example for now Move view example for ordering Rename view example Improve code and aesthetics of parc values example Updating basic volume example further Name full and thumb images differently in gen_rst Track volume mask file Change datatype of mask file for better storage Demonstrate alpha in parcellation example Unify license statements across the package Change example README as it is now incorporated into the docs page Change view in label example Updating website banner Converting README to markdown and updating some aspects of it Flattening and tweaking doc index Increasing the size of the example thumbnails Update Alex's affiliation removing large files
1 parent 57f1d82 commit 3bb7827

35 files changed

+848
-216
lines changed

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2011, Neuroimaging in Python Team
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the <organization> nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
PySurfer
2+
========
3+
4+
![](doc/logo_files/pysurfer_logo_small.png)
5+
6+
PySurfer is a Python package for interacting with a cortical surface
7+
representations of neuroimaging data. It extends Mayavi's powerful
8+
visualization engine with a high-level interface for working with MRI and MEG
9+
data.
10+
11+
PySurfer offers both a command-line interface designed to broadly the
12+
Freesurfer Tksurfer program and a Python library for writing scripts to
13+
efficiently explore complex datasets and prepare publication-ready figures.
14+
15+
To goal of the project is to facilitate the production of figures that are both
16+
beautiful and scientifically informative.
17+
18+
Important Links
19+
---------------
20+
21+
- Official source code repository: https://github.com/nipy/PySurfer
22+
- Online documentation (stable): http://pysurfer.github.com/
23+
- NITRC page: http://www.nitrc.org/projects/pysurfer
24+
- Freesurfer: http://surfer.nmr.mgh.harvard.edu/
25+
- Mailing list: http://mail.scipy.org/mailman/listinfo/nipy-devel
26+
27+
Install
28+
-------
29+
30+
This packages uses setuptools. To install it for all users, run:
31+
32+
python setup.py build
33+
sudo python setup.py install
34+
35+
If you do not have sudo privileges, you can install locally:
36+
37+
python setup.py install --home
38+
39+
For information about dependencies, please see the [online
40+
documentation](http://pysurfer.github.com/install.html)
41+
42+
License
43+
-------
44+
45+
Available under the Revised BSD (3-clause) license.
46+
47+
Testing
48+
-------
49+
50+
You can launch the test suite by running `nosetests` from the source folder.
51+
52+
Another way to test is to build the documentation, which will run the example
53+
scripts and automatically generate static image output. From the source
54+
directory:
55+
56+
cd doc/
57+
make clean
58+
make html
59+
60+
The resulting documentation will live at _build/html/index.html, which can be
61+
compared to the online docs.
62+
63+
Either method will work only if you have Freesurfer installed on your machine
64+
with a valid SUBJECTS\_DIR folder.

README.rst

Lines changed: 0 additions & 66 deletions
This file was deleted.

doc/_static/banner.png

21.3 KB
Loading

doc/_static/pysurfer_logo_small.png

433 KB
Loading

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% block header %}
55
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
66
<a href="{{pathto('index') }}">
7-
<img src="{{ pathto("_static/banner.png", 1) }}" alt="PySurfer logo" border="0" />
7+
<img src="{{ pathto("_static/banner.png", 1) }}" alt="PySurfer logo" height=180px width=600px border="0" />
88
</div>
99
{% endblock %}

doc/documentation/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Documentation
2-
=============
1+
Detailed Documentation
2+
======================
33

44
.. _doc-index:
55

doc/index.rst

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
Introduction
22
============
33

4-
PySurfer is a Python based program for visualization and interaction
5-
with cortical surface representations of neuroimaging data from
6-
`Freesurfer <http://surfer.nmr.mgh.harvard.edu/>`_. It extends
7-
`Mayavi's <http://github.enthought.com/mayavi/mayavi/index.html>`_ powerful
8-
visualization engine with a high-level interface for working with
9-
MRI and MEG data.
4+
PySurfer is a Python library for visualizing cortical surface representations
5+
of neuroimaging data. The package is primarily intended for use with
6+
`Freesurfer <http://surfer.nmr.mgh.harvard.edu/>`_, but it can plot data that
7+
are drawn from a variety of sources. PySurfer extends `Mayavi's
8+
<http://github.enthought.com/mayavi/mayavi/index.html>`_ powerful rendering
9+
engine with a high-level interface for working with MRI and MEG data.
1010

11-
PySurfer offers both a command-line interface designed to broadly
12-
replicate Freesurfer's Tksurfer program as well as a Python library
13-
for writing scripts to efficiently explore complex datasets.
14-
15-
Contents
16-
--------
11+
More Information
12+
----------------
1713

1814
.. toctree::
19-
:maxdepth: 2
15+
:maxdepth: 1
2016

2117
install
2218
examples/index.rst
@@ -25,20 +21,16 @@ Contents
2521
Authors
2622
-------
2723

28-
Michael Waskom, Stanford University
29-
30-
Alexandre Gramfort, Harvard Med. School MGH Martinos Center - INRIA
31-
32-
Scott Burns, Harvard Med. School MGH Martinos Center
33-
34-
Martin Luessi, Harvard Med. School MGH Martinos Center
35-
36-
Eric Larson, University of Washington ILABS
24+
- Michael Waskom, Stanford University
25+
- Alexandre Gramfort, Telecom ParisTech - CNRS, CEA - Neurospin
26+
- Scott Burns, Vanderbilt University
27+
- Martin Luessi, Harvard Medical School MGH Martinos Center
28+
- Eric Larson, University of Washington ILABS
3729

3830
License
3931
-------
4032

41-
The PySurfer source code is available under the simplified BSD license
33+
The PySurfer source code is available under the Revised BSD (3-Clause) license
4234

4335
Support
4436
-------

doc/logo_files/activation.png

330 KB
Loading

doc/logo_files/annot.png

407 KB
Loading

0 commit comments

Comments
 (0)