Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
880a13c
fixed bug in resampling for unsigned type images
alexis-roche Oct 5, 2012
1ae8a54
update docstring for cubic spline resampling pyx function
alexis-roche Oct 10, 2012
5ca0c1d
additional tests for resampling
alexis-roche Oct 10, 2012
3d7ae10
testing the fix
alexis-roche Oct 11, 2012
7f78940
BF: fixed the example to make it work in all circumstances
bthirion Oct 14, 2012
2406ec3
ENH: rewrote the line of code for confidence intervals to make the co…
bthirion Oct 14, 2012
8d9ac1a
COSMIT: improved the example (figures + removed unnecessay lines)
bthirion Oct 14, 2012
cab5f68
make it possible to input slice_order=None to FmriRealign4d
alexis-roche Oct 21, 2012
392e5ee
small edit
alexis-roche Oct 21, 2012
a92aa8e
add test for slice_order=None in FmriRealign4d object
alexis-roche Oct 29, 2012
3f0d0a9
account for PR review comments
alexis-roche Nov 12, 2012
07c4b10
BF: fix WindowsError on attempted file deletion
matthew-brett Nov 14, 2012
78f43b3
account for additional PR feedback
alexis-roche Nov 14, 2012
9abaea8
cosmit: added some comments in the roi_and_glm script to help the mot…
bthirion Nov 14, 2012
cff760a
BF: move scripts to use nibabel not imageformats
matthew-brett Nov 15, 2012
b4387a9
Merge pull request #232 from alexis-roche/fix-issue-228
matthew-brett Nov 15, 2012
0c167fc
Merge pull request #227 from alexis-roche/fix-resampling-bug
matthew-brett Nov 15, 2012
4b96474
Merge pull request #231 from bthirion/fix_roi-glm_example
matthew-brett Nov 15, 2012
b7947cd
make realign4d test more robust in hope to correct test failures
alexis-roche Nov 15, 2012
d47c511
implement fast quantile independently from libcstat
alexis-roche Oct 13, 2012
47a7513
make viz_tools point to the new quantile function
alexis-roche Oct 13, 2012
4ef0582
update docstrings + add tests
alexis-roche Oct 13, 2012
f9913f9
account for PR comments
alexis-roche Nov 14, 2012
e0d2cd3
replace unsigned int with npy_intp to deal with array sizes/strides i…
alexis-roche Nov 14, 2012
4a4f20e
more comprehensive median/quantile tests
alexis-roche Nov 15, 2012
512618e
RF: extend quantile and median tests
matthew-brett Nov 16, 2012
eca49e4
Merge pull request #1 from matthew-brett/refactor-quantile-routine
matthew-brett Nov 16, 2012
2c52539
Merge pull request #230 from alexis-roche/refactor-quantile-routine
alexis-roche Nov 16, 2012
f5a9981
review realign4d code and fixed test failure
alexis-roche Nov 16, 2012
b164904
added comment to explain the test
alexis-roche Nov 16, 2012
7f708af
display minimization messages by default
alexis-roche Nov 17, 2012
bd7dc4e
Cleaned and documented steepest descent routine
alexis-roche Nov 20, 2012
f45c793
Merge pull request #233 from alexis-roche/fix-realign4d-test-failures
matthew-brett Nov 20, 2012
d2a6939
BF: fix badly considered import by some loser*
matthew-brett Nov 21, 2012
1d81f03
BF: apply correct fix to quartile test
matthew-brett Nov 21, 2012
b1538a3
NF: script to run examples
matthew-brett Sep 14, 2012
d0ada7d
RF: make examples compatible with Python 3
matthew-brett Sep 15, 2012
ad26583
BF: make integer division explicit for python 3
matthew-brett Sep 15, 2012
b4d8aea
BF: work round change in round() for python 3
matthew-brett Sep 15, 2012
d57f510
DOC: examples runner script in release checklist
matthew-brett Sep 17, 2012
ad94aed
FOX: explicitly set __doc__ for printing
matthew-brett Oct 11, 2012
32d028c
FIX: remove use of xrange from example
matthew-brett Oct 11, 2012
d1765b0
FIX: update glm beta variance example for Py3
matthew-brett Oct 11, 2012
4fafecc
FIX: further __doc__ and print updates
matthew-brett Oct 11, 2012
20df824
FIX: fix fetch of only value from dict for py3
matthew-brett Oct 11, 2012
6c6cd78
use_derivatives fix
Nov 23, 2012
d3a3996
BF: update before apt-get for travis build
matthew-brett Nov 25, 2012
02414c2
RF: add ability to run single example in script
matthew-brett Nov 25, 2012
dc6e054
RF: make script outputs strings for printing
matthew-brett Nov 25, 2012
60f351a
Merge pull request #225 from matthew-brett/py3-examples
matthew-brett Nov 25, 2012
4913997
BF + TEST: refactor fmri model inputs, add tests
matthew-brett Nov 25, 2012
28a437d
BF: change use of iteritems for python 3
matthew-brett Nov 25, 2012
c0698f1
BF: add list around .values() for python 3
matthew-brett Nov 25, 2012
eba4191
Merge pull request #235 from bpinsard/bug/groupwise_registration
matthew-brett Nov 26, 2012
80de819
RF: move nipy_diagnose imports to canonical order
matthew-brett Dec 4, 2012
8264e9f
NF: save percentage variances and vectors from PCA
matthew-brett Dec 4, 2012
bca934d
Merge pull request #236 from matthew-brett/glm-input-tests
matthew-brett Dec 4, 2012
af13a0b
Merge pull request #240 from matthew-brett/extend-nipy-diagnose
matthew-brett Dec 4, 2012
c78fd27
ENH: added the opening to the API, and the mask computation now takes…
bthirion Dec 5, 2012
0412fcf
ENH: mask computation is now tested. Caveat: does not work with defau…
bthirion Dec 5, 2012
ae60975
BF: added a test to see the effect of opening
bthirion Dec 6, 2012
fac6011
BF+NF: fix path to save arrays; add tsdiff arrays
matthew-brett Dec 6, 2012
4880ff2
ENH: Added a test for multiple session mask
bthirion Dec 6, 2012
fe0cc83
ENH: corrected docstrings in mask
bthirion Dec 8, 2012
fd6ae52
ENH: variable renaming for consistency
bthirion Dec 8, 2012
d0db702
BF: missing sys for sys.exit
matthew-brett Dec 12, 2012
485d4da
NF: convert nipy image with 'unknown' world to nii
matthew-brett Dec 15, 2012
008224c
RF: better tests of current axis finding algorithm
matthew-brett Dec 17, 2012
a6b469d
RF: make fix0=True default for axis routines
matthew-brett Dec 17, 2012
047a6dc
BF: strange error when passing bool as mask type
matthew-brett Dec 17, 2012
0ff4479
TST: Add tests for nipy_* scripts
matthew-brett Dec 18, 2012
cfd81d9
BF: fix misspelled import of nibabel
matthew-brett Dec 19, 2012
ae7d234
RF: refactor scripts to extend arguments and help
matthew-brett Dec 19, 2012
2687643
NF: setup helper for windows executable scripts
matthew-brett Dec 18, 2012
eafd6a3
RF: run local script files through Python
matthew-brett Dec 19, 2012
6fc6809
BF: deal with spaces in paths for script arguments
matthew-brett Dec 19, 2012
a91a354
BF: check for symlinks looking for local scripts
matthew-brett Dec 19, 2012
5eecbab
Merge pull request #242 from matthew-brett/unknown-nifti-space
matthew-brett Dec 19, 2012
f5848fc
BUG: viz: black background in PDF and SVG output
GaelVaroquaux Dec 20, 2012
26dd76d
Remove trailing print
GaelVaroquaux Dec 24, 2012
0a9e3af
DOC: correct docstring
GaelVaroquaux Dec 24, 2012
3f18b07
ENH: make it easier to use axes in slicers
GaelVaroquaux Dec 24, 2012
ca2a7e5
Merge pull request #241 from bthirion/glm-input-tests-mask
matthew-brett Dec 26, 2012
fceb5d0
DOC+TST: add examples to pca docstrings
matthew-brett Dec 26, 2012
e267238
NF: added a module to handle mixed-effects
bthirion Nov 13, 2012
50d8722
ENH: added the corresponding tests
bthirion Nov 13, 2012
ed416b6
ENH: Added an example illustrating the impact of mixed-effects model
bthirion Nov 13, 2012
65e0de4
BF: Changed the mixed-effects doctest for Travis
bthirion Nov 15, 2012
d3a6478
BF: Changed the mixed-effects doctest for Travis -- again
bthirion Nov 15, 2012
b040e9b
RF: add debug print for script tests
matthew-brett Dec 31, 2012
019cb29
RF: add bdist_mpkg to setuptools command list
matthew-brett Jan 3, 2013
2a78fef
RF: get DEBUG_PRINT from environment
matthew-brett Jan 4, 2013
1eaddd2
Merge pull request #245 from matthew-brett/test-scripts
matthew-brett Jan 4, 2013
dc7de88
Merge pull request #244 from matthew-brett/refactor-axis-finding
matthew-brett Jan 5, 2013
6c65789
Merge pull request #234 from bthirion/mixed-effects
matthew-brett Jan 5, 2013
f8b84ed
Merge pull request #243 from matthew-brett/pca-mask-fix
matthew-brett Jan 5, 2013
ed774d3
COSMIT: nicer vizualization example
bthirion Dec 25, 2012
58b547e
MISC: remove transparency
GaelVaroquaux Jan 9, 2013
83a4492
Merge remote-tracking branch 'gael/viz_black_bg' into main-master
matthew-brett Jan 9, 2013
667e0d6
DOC: fix typos in visualize
matthew-brett Jan 9, 2013
1143f82
BF: make example compatible with Python3
matthew-brett Jan 12, 2013
256137a
DOC: remove copyright symbol from argparse
matthew-brett Jan 13, 2013
ce97321
BF: recythonize pyx files for Python 3.3
matthew-brett Jan 13, 2013
d4bf842
NF: make target to recythonize pyx files
matthew-brett Jan 14, 2013
4276de6
DOC: update Changelog for 0.3 release
matthew-brett Jan 14, 2013
23a8455
NF: add script_test label to tests for scripts
matthew-brett Jan 15, 2013
5accad7
DOC: update release instructions for script tests
matthew-brett Jan 15, 2013
d7953f3
DOC: update surrogate array docs / docstrings
matthew-brett Jan 15, 2013
ba004b5
DOC: minor rejigging of enn doc / docstrings
matthew-brett Jan 15, 2013
a248951
DOC: updating doctests sphinx docs
matthew-brett Jan 16, 2013
f96a694
TST: remove yields in coordinate_system tests
matthew-brett Jan 16, 2013
6340b9f
RF: allow object coordinate in coordinate system
matthew-brett Jan 16, 2013
62e8f17
RF: allow coordinate map to work with object dtype
matthew-brett Jan 16, 2013
5dc0d33
BF: allow CoordinateMap subclasses on L & R of ==
matthew-brett Jan 16, 2013
b2e2c13
RF: refactor to restore previous inverse behavior
matthew-brett Jan 18, 2013
b50c316
BF: fix travis yml file for build errors
matthew-brett Jan 18, 2013
d915f89
[BF] Fix bug in multiple_fast_inv.
VirgileFritsch Jan 18, 2013
5ce0c85
Merge pull request #248 from matthew-brett/allow-object-coordinates
jbpoline Jan 20, 2013
5d52c2e
Add test for multiple_fast_inv.
VirgileFritsch Jan 22, 2013
cb53c6f
Cosmit: Syntax simplification in multiple_fast_inv.
VirgileFritsch Jan 22, 2013
f332367
Merge pull request #249 from VirgileFritsch/master
matthew-brett Jan 22, 2013
41540d6
FMRILinearModel handles the case where contrasts are null for some fm…
Jan 18, 2013
799bb80
Syntax change in FMRILinearModel.contrast implementation
Jan 21, 2013
342ac0b
Added test in test_glm.test_high_level_glm_null_contrasts and fixed a…
Jan 21, 2013
eb58b46
Removed useless contrast in test_glm.test_high_level_glm_null_contrasts
Jan 22, 2013
002fafc
Merge branch 'glm_null_contrasts_rerebased' into main-master
matthew-brett Jan 22, 2013
e0e71a8
DOC: working out windows compiles
matthew-brett Jan 24, 2013
50583f1
NF: tool to refresh modification time of C files
matthew-brett Jan 24, 2013
8df7f4d
RF: replace numpy.testing.assert_ with assert_true
matthew-brett Jan 24, 2013
3316c31
RF: no dict methods for old numpy load returns
matthew-brett Jan 24, 2013
eaa422a
RF: avoid import error for numpy 1.2
matthew-brett Jan 24, 2013
71be6e9
Merge pull request #252 from matthew-brett/old-numpy-compat
matthew-brett Jan 26, 2013
e493a75
RF: add py3 wrapper around csv file opening
matthew-brett Jan 26, 2013
83a8082
BF: use open4csv compatibility function
matthew-brett Jan 26, 2013
9a4a038
BF: manual fix for csv writing in example
matthew-brett Jan 26, 2013
a6db930
Merge pull request #255 from matthew-brett/py3-csv-fixes
matthew-brett Jan 31, 2013
80c283b
BF: make windows script wrappers more robust
matthew-brett Jan 31, 2013
2655c5a
RF: don't use setuptools to create the .exe binary
matthew-brett Jan 31, 2013
9c3bff7
BF: use shell=True for windows script tests
matthew-brett Jan 31, 2013
b84ea03
DOC: comment in windows bat, rewrite docstring
matthew-brett Feb 2, 2013
4271490
Merge pull request #257 from matthew-brett/windows-script-install
matthew-brett Feb 2, 2013
a29dc33
BF: forgot future import for with statement
matthew-brett Feb 2, 2013
4f5033c
DOC: 64 bits print 0 as 0L from vtk datasets
matthew-brett Feb 3, 2013
21a0fae
DOC: don't test uninteresting doctest
matthew-brett Feb 3, 2013
f7b6581
DOC: update AUTHOR and Changelog for release
matthew-brett Feb 3, 2013
aecf1f4
DOC: update install instructions
matthew-brett Feb 3, 2013
ee97500
DOC: update README and info
matthew-brett Feb 2, 2013
965ecfc
DOC: updating release instructions for buildbots
matthew-brett Feb 3, 2013
afed8d8
REL: release 0.3.0
matthew-brett Feb 3, 2013
7df3c54
MISC: start 0.3.x maintenance branch
matthew-brett Feb 3, 2013
b2c8600
MISC: start 0.4.0 development
matthew-brett Feb 3, 2013
92f8db7
MRG: -s ours merge of maint version changes
matthew-brett Feb 3, 2013
0e4d355
DOC: note -s ours merge of maintenance branch
matthew-brett Feb 3, 2013
8ba6295
DOC: update copyright dates; note need to check
matthew-brett Feb 3, 2013
4912513
DOC: reminder to update AUTHORs and THANKS
matthew-brett Feb 3, 2013
7feaa34
Merge branch 'maint/0.3.x' into main-master
matthew-brett Feb 3, 2013
d5b54d1
Update doc/faq/johns_bsd_pitch.rst
endolith Feb 5, 2013
3e7291f
Merge pull request #261 from endolith/patch-1
matthew-brett Feb 5, 2013
5beb8ea
"their is" -> "there is"
endolith Feb 5, 2013
66c0223
BF: fixed the dtype issue by forcing the type to np.float64
bthirion Feb 6, 2013
c5d4853
COSMIT: Cleaned test_field
bthirion Feb 6, 2013
e551704
COSMIT: a pass on test_graph
bthirion Feb 6, 2013
479f2d7
ENH: Avoid the systematic casting to np.float64 in dilation function
bthirion Feb 7, 2013
0523deb
ENH: update docstring and remove one copy
bthirion Feb 11, 2013
3753080
BF Fixed the case of empty set of regions in bsa -- to be further che…
bthirion Sep 26, 2012
44727da
A pass on bsa module: simplifications, redundancy removal, more expli…
bthirion Mar 25, 2013
19485e0
More changes in related modules: variable naming, API
bthirion Mar 26, 2013
baff30b
More variable renaming and simplifications
bthirion Mar 27, 2013
132e32b
Proceed with updates of the Functional landmark stuff
bthirion Apr 7, 2013
434799d
NF: add script to build dmg files from buildbots
matthew-brett Apr 13, 2013
e68c7b5
NF: add tool for doctest for extensions
matthew-brett Apr 13, 2013
c594ac8
Further simplifications on the landmark learning structure
bthirion Apr 19, 2013
0072164
Simplified again the landmark API
bthirion Apr 21, 2013
6e852b1
DOC: tiny changes in release notes
matthew-brett Apr 24, 2013
86bb1b2
DOC: fix typo; change dipy to nipy
matthew-brett Apr 24, 2013
fb45a06
DOC: point to newer function for rolling axes
matthew-brett Apr 25, 2013
83eb480
RF: add time and slice axes arguments to screens
matthew-brett Apr 25, 2013
617dcf1
RF: make default slice axis adapt to time axis
matthew-brett Apr 25, 2013
8cca5ff
RF: add time_axis, slice_axis to nipy_diagnose
matthew-brett Apr 25, 2013
cfc99f8
Merge pull request #262 from endolith/patch-1
matthew-brett Apr 26, 2013
63a043f
many other simplifications + pep8 on part of the code base
bthirion Apr 26, 2013
343b8cf
Merge pull request #267 from matthew-brett/build-dmgs-script
matthew-brett May 2, 2013
9df4e65
Merge pull request #263 from bthirion/fix-type-graph
matthew-brett May 2, 2013
3652cb9
A few fixes in the docstrings of the examples
bthirion May 3, 2013
e757cd9
Further simplified the bsa example
bthirion May 8, 2013
f8095fa
Updates of the doctrings
bthirion May 14, 2013
05ee837
increased test coverage + faster tests
bthirion May 14, 2013
0363f9c
Fixed a remote bug triggered by travis...
bthirion May 14, 2013
b9d0ed9
Further simplifcations of the cade + more tests
bthirion May 14, 2013
1013595
added tests for bsa_io
bthirion May 14, 2013
ecaed2c
pep8 + a little fix
bthirion May 15, 2013
4293f54
DOC: update sourceforge links to nipy.org
matthew-brett May 22, 2013
51fe896
Merge pull request #268 from matthew-brett/screens-refactor
matthew-brett May 23, 2013
5cc72af
Merge pull request #271 from bthirion/fix-bsa
bthirion May 23, 2013
154c2e7
ds105 fmri example with single runs being fit
jonathan-taylor Jun 10, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
- PYTHON=python PYSUF=''
- PYTHON=python3 PYSUF=3
install:
- sudo apt-get update
- sudo apt-get install $PYTHON-dev
- sudo apt-get install $PYTHON-numpy
- sudo apt-get install $PYTHON-scipy
Expand All @@ -22,7 +23,7 @@ install:
- if [ "${PYSUF}" == "3" ]; then
git clone git://github.com/sympy/sympy.git _sympy ;
cd _sympy ;
git checkout -b 0.7.2 origin/0.7.2 ;
git checkout -b 0.7.2 sympy-0.7.2 ;
python3 ./bin/use2to3 ;
cd py3k-sympy ;
sudo python3 setup.py install ;
Expand All @@ -37,4 +38,4 @@ script:
# Change into an innocuous directory and find tests from installation
- mkdir for_test
- cd for_test
- $PYTHON ../tools/nipnost `$PYTHON -c "import os; import nipy; print(os.path.dirname(nipy.__file__))"`
- $PYTHON ../tools/nipnost -A "not slow" `$PYTHON -c "import os; import nipy; print(os.path.dirname(nipy.__file__))"`
1 change: 1 addition & 0 deletions AUTHOR
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Mike Trumpis
Tim Leslie
Tom Waite
Virgile Fritsch <[email protected]>
Yannick Schwartz <[email protected]>
Yaroslav Halchenko <[email protected]>
34 changes: 34 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,40 @@ The full VCS changelog is available here:
Releases
~~~~~~~~

Abbreviated authors are:

* MB - Matthew Brett
* BT - Bertrand Thirion
* AR - Alexis Roche
* GV - Gaël Varoquaux
* YH - Yarik Halchenko

* 0.3.0 (Saturday 2 February 2013)

* Bugfix, refactoring and compatibility release
* Addition of EM algorithm for mixed effects analysis (BT)
* New high-level GLM class interface (BT)
* nipy diagnostic scripts save PCA and tsdifana vectors to npz file
* Python 3 compatibility through 3.3 (MB)
* Fixes for compatibility with upcoming Numpy 1.7
* Fixes to background and axis specification in visualization tools (GV, BT)
* Fixes and tests for installed nipy scripts (MB)
* Fix to optimization parameters for Realign4D - thanks to `bpinsard`
* Fix 0 in affine diagonal for TR=0 in affines by default (MB)
* Allow saving of nipy images loaded from nifti files that lack explicit
affine (MB)
* Allow `slice_order=None` to `FmriRealign4D` when not doing time
interpolation (AR); check for valid slice order specification (YR)
* Refactoring of quantile routine to move code out of C library (AR)
* Fix bug in resampling of unsigned int images (AR)
* Custom doctest machinery to work round differences of dtype repr on
different platforms, and to skip doctests with optional dependencies (MB)
* Script to run examples for testing (MB)
* Fix for accidental integer division of frametimes in design matrix
generation (Fabian Pedregosa)
* Various other fixes and refactorings with thanks from (AR, BT, MB, YR,
Yannick Schwartz, Virgile Fritsch)

* 0.2.0 (Sunday 22 July 2012)

* The first ever official release
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2006-2012, NIPY Developers
Copyright (c) 2006-2013, NIPY Developers
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,9 @@ tox-stale:
# installed)
tox -e python25,python26,python27,python32,np-1.2.1

recythonize:
# Recythonize all pyx files
find . -name "*.pyx" -exec cython -I libcstat/wrapper {} \;

.PHONY: orig-src pylint

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ You can find our sources and single-click downloads:
.. _main repository: http://github.com/nipy/nipy
.. _Documentation: http://nipy.org/nipy
.. _current trunk: http://github.com/nipy/nipy/archives/master
.. _available releases: http://github.com/nipy/nipy/downloads
.. _available releases: http://pypi.python.org/pypi/nipy

Dependencies
============

To run NIPY, you will need:

* python_ >= 2.5. We don't yet run on python 3, sad to say.
* python_ >= 2.5 (tested with 2.5, 2.6, 2.7, 3.2, 3.3)
* numpy_ >= 1.2
* scipy_ >= 0.7.0
* sympy_ >= 0.6.6
Expand Down
6 changes: 3 additions & 3 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h4> Site Navigation </h4>
<h4> NIPY Community </h4>
<ul class="simple">
<li><a class="reference external"
href="http://nipy.sourceforge.net/">Community Home</a></li>
href="http://nipy.org/">Community Home</a></li>
<li><a class="reference external"
href="http://nipy.sourceforge.net/software/projects/">NIPY Projects</a></li>
href="http://nipy.org/software/projects/">NIPY Projects</a></li>
<li><a class="reference external"
href="http://mail.scipy.org/mailman/listinfo/nipy-devel">Mailing List</a></li>
<li><a class="reference external"
href="http://nipy.sourceforge.net/software/license/index.html">License</a></li>
href="http://nipy.org/software/license/index.html">License</a></li>
</ul>

<h4> Github repo </h4>
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
project = 'nipy'

#copyright = ':ref:`2005-2010, Neuroimaging in Python team. <nipy-software-license>`'
copyright = '2005-2012, Neuroimaging in Python team'
copyright = '2005-2013, Neuroimaging in Python team'

# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
Expand Down
19 changes: 9 additions & 10 deletions doc/devel/code_discussions/comparisons/vtk_datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Here we describe the VTK dataset model, because of some parallels with
our own idea of an image object. The document is from the VTK book - [VTK4]_

See also:
See also:

* http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/data.html#vtk-data-structures
* http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_datasets.html
Expand Down Expand Up @@ -45,14 +45,13 @@ refers to, you can identify the element.

>>> pts = vtk.vtkPoints()
>>> id = pts.InsertNextPoint(0, 0, 0)
>>> id
0
>>> id == 0
True
>>> id = pts.InsertNextPoint(0, 1, 0)
>>> id
1
>>> pts.GetPoint(1)
(0.0, 1.0, 0.0)

>>> id == 1
True
>>> pts.GetPoint(1) == (0.0, 1.0, 0.0)
True

A dataset has one or more points
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -91,8 +90,8 @@ True
>>> triangle.GetCellType() == VTK_TRIANGLE
True
>>> pt_ids = triangle.GetPointIds() # these are default (zeros) at the moment
>>> [pt_ids.GetId(i) for i in range(pt_ids.GetNumberOfIds())]
[0, 0, 0]
>>> [pt_ids.GetId(i) for i in range(pt_ids.GetNumberOfIds())] == [0, 0, 0]
True

Here we set the ids. The ids refer to the points above. The system
does not know this yet, but it will because, later, we are going to
Expand Down
Loading