--- pynifti-0.20070425.1.orig/nifti/utils.py +++ pynifti-0.20070425.1/nifti/utils.py @@ -16,7 +16,7 @@ # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### # SVN version control block - do not edit manually -# $Id: utils.py 276 2007-04-11 16:59:29Z mhanke-guest $ +# $Id: utils.py 276M 2007-04-24 07:39:11Z (lokal) $ ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### import nifti --- pynifti-0.20070425.1.orig/setup.py +++ pynifti-0.20070425.1/setup.py @@ -18,7 +18,7 @@ # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### # SVN version control block - do not edit manually -# $Id: setup.py 275 2007-04-01 09:47:23Z mhanke-guest $ +# $Id: setup.py 275M 2007-04-25 21:08:09Z (lokal) $ ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### from distutils.core import setup, Extension --- pynifti-0.20070425.1.orig/debian/changelog +++ pynifti-0.20070425.1/debian/changelog @@ -0,0 +1,83 @@ +pynifti (0.20070425.1-1) unstable; urgency=low + + * Improved documentation. Added note about the special usage of the header + property. Also added notes about the relevant properties in the docstring + of the corresponding accessor methods. + * Added property and accessor methods to access/modify the repetition time + of timeseries (dt). + * Added functions to manipulate the pixdim values. + * Added utils.py with some utility functions. + * Added functions/property to determine the bounding box of an image. + * Fixed a bug that caused a corrupted sform matrix when converting a NumPy + array and a header dictionary into a NIfTI image. + * Added script to compute peristimulus timeseries (pynifti_pst). + * Package now depends on python-scipy. + + -- Michael Hanke Wed, 25 Apr 2007 23:12:22 +0200 + +pynifti (0.20070315.1-1) unstable; urgency=low + + [ Yaroslav Halchenko ] + * Removed functionality for "NiftiImage.save() raises an IOError + exception when writing the image file fails." + + [ Michael Hanke ] + * Added ability to force a filetype when setting the filename or saving + a file. + * Reverse the order of the 'header' and 'load' argument in the NiftiImage + constructor. 'header' is now first as it seems to be used more often. + * Improved the source code documentation. + * Added getScaledData() method to NiftiImage that returns a copy of the data + array that is scaled with the slope and intercept stored in the NIfTI + header. + + -- Michael Hanke Thu, 15 Mar 2007 18:25:52 +0100 + +pynifti (0.20070301.2-1) unstable; urgency=low + + * Fixed wrong link to the source tarball in README.html. + + -- Michael Hanke Thu, 1 Mar 2007 22:27:26 +0100 + +pynifti (0.20070301.1-1) unstable; urgency=low + + [ Michael Hanke ] + * Updated build-depends to comply to the latest Python policy. + * Initial upload to the Debian archive. (Closes: #413049) + * NiftiImage.save() raises an IOError exception when writing the image file + fails. + + [ Yaroslav Halchenko ] + * Added extent, volextent, and timepoints properties to NiftiImage + class. + + -- Michael Hanke Thu, 1 Mar 2007 22:08:15 +0100 + +pynifti (0.20070220.1-1) unstable; urgency=low + + * NiftiFile class is renamed to NiftiImage. + * SWIG-wrapped libniftiio functions are no available in the nifticlib + module. + * Fixed broken NiftiImage from Numpy array constructor. + * Added initial documentation in README.html. + * Fulfilled a number of Yarik's wishes ;) + + -- Michael Hanke Tue, 20 Feb 2007 17:36:08 +0100 + +pynifti (0.20070214.1-1) unstable; urgency=low + + * Does not depend on libfslio anymore. + * Up to seven-dimensional dataset are supported (as much as NIfTI can do). + * The complete NIfTI header dataset is modifiable. + * Most image properties are accessable via class attributes and accessor + methods. + * Improved documentation (but still a long way to go). + + -- Michael Hanke Wed, 14 Feb 2007 10:11:55 +0100 + +pynifti (0.20061114-1) unstable; urgency=low + + * Initial release. + + -- Michael Hanke Tue, 14 Nov 2006 19:36:51 +0100 + --- pynifti-0.20070425.1.orig/debian/control +++ pynifti-0.20070425.1/debian/control @@ -0,0 +1,20 @@ +Source: pynifti +Section: science +Priority: optional +Maintainer: Michael Hanke +Uploaders: Yaroslav Halchenko +Build-Depends: debhelper (>= 5.0.38), swig, python-all-dev (>= 2.4), python-central (>= 0.5.6), python-numpy-ext, libniftiio0-dev +XS-Python-Version: >= 2.4 +XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-exppsy/pynifti/trunk +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-exppsy/pynifti/trunk +Standards-Version: 3.7.2 + +Package: python-nifti +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-numpy, python-numpy-ext, python-scipy +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Python interface to the NIfTI I/O libraries + Using PyNIfTI one can easily read and write NIfTI and ANALYZE images from + within Python. The NiftiImage class provides Python-style access to the full + header information. Image data is made available via NumPy arrays. --- pynifti-0.20070425.1.orig/debian/compat +++ pynifti-0.20070425.1/debian/compat @@ -0,0 +1 @@ +5 --- pynifti-0.20070425.1.orig/debian/watch +++ pynifti-0.20070425.1/debian/watch @@ -0,0 +1,7 @@ +# Compulsory line, this is a version 3 file +version=3 + +http://apsy.gse.uni-magdeburg.de/~hanke/software/pynifti/pynifti_(.*)\.orig\.tar\.gz + + + --- pynifti-0.20070425.1.orig/debian/python-nifti.manpages +++ pynifti-0.20070425.1/debian/python-nifti.manpages @@ -0,0 +1 @@ +man/pynifti_pst.1 --- pynifti-0.20070425.1.orig/debian/copyright +++ pynifti-0.20070425.1/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Michael Hanke on +Tue, 14 Nov 2006 19:36:51 +0100. + +It was downloaded from: + + http://apsy.gse.uni-magdeburg.de/~hanke/software/pynifti/ + +Upstream Author: + + Michael Hanke + +Copyright (C) 2006-2007 Michael Hanke + + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + + +The Debian packaging is (C) 2006-2007, Michael Hanke +and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + --- pynifti-0.20070425.1.orig/debian/docs +++ pynifti-0.20070425.1/debian/docs @@ -0,0 +1 @@ +README.html --- pynifti-0.20070425.1.orig/debian/rules +++ pynifti-0.20070425.1/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +#config +PYVERS := $(shell pyversions -vr) + +PYNAME=nifti +PYPKG=python-$(PYNAME) +BASE=$(CURDIR)/debian + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: $(PYVERS:%=build-arch-python%) + touch $@ + +build-arch-python%: + python$* setup.py build_ext + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp build-arch-python* + + # Add here commands to clean up after the build process. + python setup.py clean + $(MAKE) distclean + + dh_clean + +pre-install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + +install: build pre-install install-indep install-arch +install-indep: + dh_installdirs -i + + dh_install -i + +install-python%: + python$* setup.py install --root $(BASE)/$(PYPKG) --no-compile + python$* setup.py clean + +install-arch: pre-install $(PYVERS:%=install-python%) + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_strip + dh_pycentral + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + # there is nothing to do + #$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure --- pynifti-0.20070425.1.orig/debian/pycompat +++ pynifti-0.20070425.1/debian/pycompat @@ -0,0 +1 @@ +2