Skip to content

Commit acbf364

Browse files
Merge pull request #424 from matthew-brett/prepare-0.4.1
MAINT: updating docs for release
2 parents d63e060 + 47b643a commit acbf364

File tree

8 files changed

+100
-30
lines changed

8 files changed

+100
-30
lines changed

AUTHOR

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Alexis Roche <alexis.roche@gmail.com>
22
Ariel Rokem <arokem@gmail.com>
33
Bertrand Thirion <bertrand.thirion@inria.fr>
4+
Benjamin Thyreau
45
Brian Hawthrorne
56
Ben Cipollini <ben.cipollini@gmail.com>
67
Chris Burns <cburns@berkeley.edu>
@@ -14,6 +15,7 @@ Jarrod Millman <jarrod.millman@gmail.com>
1415
Jean-Baptiste Poline <jbpoline@gmail.com>
1516
Jonathan Taylor <jonathan.taylor@stanford.edu>
1617
Matthew Brett <matthew.brett@gmail.com>
18+
Matteo Visconti dOC <matteo.visconti.gr@dartmouth.edu>
1719
Merlin Keller
1820
Michael Waskom
1921
Mike Trumpis

Changelog

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,30 @@ Abbreviated authors are:
3232
* JBP - Jean-Baptiste Poline
3333
* JT - Jonathan Taylor
3434

35+
* 0.4.1 (Monday 6 February 2017)
36+
37+
Bugfix, refactoring and compatibility release.
38+
39+
* New discrete cosine transform functions for building basis sets;
40+
* Fixes for compatibility with Python 3.6;
41+
* Fixes for compatibility with Numpy 1.12 (1.12 no longer allows floating
42+
point values for indexing and other places where an integer value is
43+
required);
44+
* Fixes for compatibility with Sympy 1.0;
45+
* Drop compatibility with Python 2.6, 3.2, 3.3;
46+
* Add ability to pass plotting arguments to ``plot_anat`` function (Matteo
47+
Visconti dOC);
48+
* Some helpers for working with OpenFMRI datasets;
49+
* Signal upcoming change in return shape from ``make_recarray`` when passing
50+
in an array for values. Allow user to select upcoming behavior with
51+
keyword argument;
52+
* Bug fix for axis selection when using record arrays in numpies <= 1.7.1;
53+
* Add flag to allow SpaceTimeRealign to read TR from image headers;
54+
3555
* 0.4.0 (Saturday 18 October 2015)
3656

37-
* Bugfix, refactoring and compatibility release;
57+
Bugfix, refactoring and compatibility release.
58+
3859
* Full port to Python 3 using single code-base;
3960
* Various fixes for modern numpy, scipy, sympy, nibabel compatibility;
4061
* Refactor space-time realignment (AR);
@@ -62,7 +83,8 @@ Abbreviated authors are:
6283

6384
* 0.3.0 (Saturday 2 February 2013)
6485

65-
* Bugfix, refactoring and compatibility release
86+
Bugfix, refactoring and compatibility release.
87+
6688
* Addition of EM algorithm for mixed effects analysis (BT)
6789
* New high-level GLM class interface (BT)
6890
* nipy diagnostic scripts save PCA and tsdifana vectors to npz file
@@ -88,7 +110,7 @@ Abbreviated authors are:
88110

89111
* 0.2.0 (Sunday 22 July 2012)
90112

91-
* The first ever official release
113+
The first ever official release.
92114

93115
- > 30 contributors
94116
- > 6 years in development

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2006-2015, NIPY Developers
1+
Copyright (c) 2006-2017, NIPY Developers
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can find our sources and single-click downloads:
6565
* Download the `current development version`_ as a tar/zip file;
6666
* Downloads of all `available releases`_.
6767

68-
.. _main repository: http://github.com/nipy/nipy
68+
.. _main repository: https://github.com/nipy/nipy
6969
.. _Documentation: http://nipy.org/nipy
7070
.. _current development version: https://github.com/nipy/nipy/archive/master.zip
7171
.. _available releases: http://pypi.python.org/pypi/nipy
@@ -74,7 +74,12 @@ Tests
7474
=====
7575

7676
To run nipy's tests, you will need to install the nose_ Python testing
77-
package. Then::
77+
package. If you are using Python 2.7, you will also need to install the mock_
78+
testing package - e.g.::
79+
80+
pip install nose mock
81+
82+
Then::
7883

7984
python -c "import nipy; nipy.test()"
8085

@@ -113,6 +118,7 @@ You will probably also like to have:
113118
.. _matplotlib: http://matplotlib.org
114119
.. _mayavi: http://code.enthought.com/projects/mayavi/
115120
.. _nose: http://nose.readthedocs.org/en/latest
121+
.. _mock: https://pypi.python.org/pypi/mock
116122

117123
License
118124
=======

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
project = 'nipy'
6161

6262
#copyright = ':ref:`2005-2010, Neuroimaging in Python team. <nipy-software-license>`'
63-
copyright = '2005-2015, Neuroimaging in Python team'
63+
copyright = '2005-2017, Neuroimaging in Python team'
6464

6565
# The default replacements for |version| and |release|, also used in various
6666
# other places throughout the built documents.

doc/devel/guidelines/make_release.rst

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,39 @@ Release checklist
7171
in a python 2 and python 3 virtualenv. Review the output in (e.g.)
7272
``~/tmp/eg_logs``. The output file ``summary.txt`` will have the pass file
7373
printout that the ``run_log_examples.py`` script puts onto stdout while
74-
running.
74+
running. You can run the examples via the buildbot by triggering builds
75+
for:
76+
77+
* https://nipy.bic.berkeley.edu/builders/nipy-examples-2.7
78+
* https://nipy.bic.berkeley.edu/builders/nipy-examples-3.4
79+
80+
The matching outputs appear at:
81+
82+
* https://nipy.bic.berkeley.edu/nipy-examples-2.7
83+
* https://nipy.bic.berkeley.edu/nipy-examples-3.4
84+
85+
I use the following commands to get the output to my laptop and review with
86+
vim::
87+
88+
PY_VER=2.7
89+
BB_SSH=buildbot@nipy.bic.berkeley.edu
90+
scp -r ${BB_SSH}:nibotmi/public_html/nipy-examples-${PY_VER} .
91+
cd nipy-examples-${PY_VER}
92+
# Delete empty files
93+
find . -size 0 -exec rm {} \;
94+
# Review stderr; :bd to close buffer once reviewed
95+
vim *.stderr
96+
# Review stdout
97+
vim *.stdout
98+
cd ..
99+
100+
Likewise for::
101+
102+
PY_VER=3.4
103+
104+
I also did a by-eye comparison between the 2.7 and 3.4 files with::
105+
106+
diff -r nipy-examples-2.7 nipy-examples-3.4 | less
75107

76108
* Do a final check on the `nipy buildbot`_
77109

doc/users/install_data.rst

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,33 +51,35 @@ things from Windows powershell.
5151

5252
Call that directory ``<nipy-user>``. Let's imagine that, for you, this is
5353
``~/.nipy``.
54-
* If that directory does not exist already, create it, e.g.::
54+
* Make a subdirectory ``nipy`` in your ``<nipy-user>`` directory. In
55+
Unix you could use::
5556

56-
mkdir ~/.nipy
57+
mkdir -p ~/.nipy/nipy
5758

58-
* Make a directory in ``<nipy-user>`` called ``nipy``, e.g.::
59-
60-
mkdir ~/.nipy/nipy
59+
where the ``-p`` flag tells Unix to make any necessary parent directories.
6160

6261
* Go to http://nipy.org/data-packages
63-
* Download the latest *nipy-templates* and *nipy-data* packages
64-
* Unpack both these into some directory, e.g.::
62+
* Download the latest *nipy-templates* and *nipy-data* packages, to some
63+
directory. You can do this via the GUI, or on the command line (in Unix)::
64+
65+
cd ~/Downloads
66+
curl -OL http://nipy.org/data-packages/nipy-templates-0.2.tar.gz
67+
curl -OL http://nipy.org/data-packages/nipy-data-0.2.tar.gz
68+
69+
* Unpack both of these::
6570

66-
mkdir data
67-
cd data
68-
tar zxvf ~/Downloads/nipy-data-0.2.tar.gz
69-
tar zxvf ~/Downloads/nipy-templates-0.2.tar.gz
71+
tar zxvf nipy-data-0.2.tar.gz
72+
tar zxvf nipy-templates-0.2.tar.gz
7073

7174
* After you have unpacked the templates, you will have a directory called
7275
something like ``nipy-templates-0.2``. In that directory you should see a
7376
subdirectory called ``templates``. Copy / move / link the ``templates``
7477
subdirectory into ``<nipy-user>/nipy``, so you now have a directory
75-
``<nipy-user>/nipy/templates``. From unpacking the data, you should also have
76-
a directory like ``nipy-data-0.2`` with a subdirectory ``data``. Copy / move
77-
/ link that ``data`` directory into ``<nipy-user>/nipy`` as well. For
78-
example::
78+
``<nipy-user>/nipy/templates``. From unpacking the data, you should also
79+
have a directory like ``nipy-data-0.2`` with a subdirectory ``data``. Copy
80+
/ move / link that ``data`` directory into ``<nipy-user>/nipy`` as well.
81+
For example::
7982

80-
cd data
8183
cp -r nipy-data-0.2/data ~/.nipy/nipy
8284
cp -r nipy-templates-0.2/templates ~/.nipy/nipy
8385

@@ -89,10 +91,10 @@ things from Windows powershell.
8991

9092
(<nibabel.data.VersionedDatasource object at 0x101f8e410>, <nibabel.data.VersionedDatasource object at 0x10044b110>)
9193

92-
If it shows ``Bomber`` objects instead, something is wrong. Go back and check
93-
that you have the nipy home directory right, and that you have directories
94-
``<nipy-user>/nipy/data`` and ``<nipy-user>/nipy/templates>``, and that each
95-
of these two directories have a file ``config.ini`` in them.
94+
If it shows ``Bomber`` objects instead, something is wrong. Go back and
95+
check that you have the nipy home directory right, and that you have
96+
directories ``<nipy-user>/nipy/data`` and ``<nipy-user>/nipy/templates>``,
97+
and that each of these two directories have a file ``config.ini`` in them.
9698

9799
The more general way
98100
====================

nipy/info.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* Download the `current development version`_ as a tar/zip file;
9292
* Downloads of all `available releases`_.
9393
94-
.. _main repository: http://github.com/nipy/nipy
94+
.. _main repository: https://github.com/nipy/nipy
9595
.. _Documentation: http://nipy.org/nipy
9696
.. _current development version: https://github.com/nipy/nipy/archive/master.zip
9797
.. _available releases: http://pypi.python.org/pypi/nipy
@@ -100,7 +100,12 @@
100100
=====
101101
102102
To run nipy's tests, you will need to install the nose_ Python testing
103-
package. Then::
103+
package. If you are using Python 2.7, you will also need to install the mock_
104+
testing package - e.g.::
105+
106+
pip install nose mock
107+
108+
Then::
104109
105110
python -c "import nipy; nipy.test()"
106111
@@ -139,6 +144,7 @@
139144
.. _matplotlib: http://matplotlib.org
140145
.. _mayavi: http://code.enthought.com/projects/mayavi/
141146
.. _nose: http://nose.readthedocs.org/en/latest
147+
.. _mock: https://pypi.python.org/pypi/mock
142148
143149
License
144150
=======

0 commit comments

Comments
 (0)