forked from pool/python-nibabel
Accepting request 749762 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/749762 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nibabel?expand=0&rev=3
This commit is contained in:
commit
ec31392eac
@ -1,23 +0,0 @@
|
||||
From 86b4fbedfb6919fab4e3ffe21536c5df2633c57b Mon Sep 17 00:00:00 2001
|
||||
From: "Christopher J. Markiewicz" <markiewicz@stanford.edu>
|
||||
Date: Sat, 15 Jun 2019 14:28:04 +0200
|
||||
Subject: [PATCH] FIX/TEST: Numpy casting rules have gotten more strict, raise
|
||||
different exception
|
||||
|
||||
---
|
||||
nibabel/tests/test_volumeutils.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/nibabel/tests/test_volumeutils.py b/nibabel/tests/test_volumeutils.py
|
||||
index 06df9eb6a..fcdc5c271 100644
|
||||
--- a/nibabel/tests/test_volumeutils.py
|
||||
+++ b/nibabel/tests/test_volumeutils.py
|
||||
@@ -700,7 +700,7 @@ def test_a2f_non_numeric():
|
||||
# Some versions of numpy can cast structured types to float, others not
|
||||
try:
|
||||
arr.astype(float)
|
||||
- except ValueError:
|
||||
+ except (TypeError, ValueError):
|
||||
pass
|
||||
else:
|
||||
back_arr = write_return(arr, fobj, float)
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f165ff1cb4464902d6594eb2694e2cfb6f8b9fe233b856c976c3cff623ee0e17
|
||||
size 4591906
|
3
nibabel-2.5.1.tar.gz
Normal file
3
nibabel-2.5.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:83ecac4773ece02c49c364d99b465644c17cc66f1719560117e74991d9eb566b
|
||||
size 4598466
|
@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 20:41:07 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- Update to version 2.5.1
|
||||
+ Enhancements
|
||||
* Ignore endianness in ``nib-diff`` if values match
|
||||
+ Bug fixes
|
||||
* Correctly handle Philips DICOMs w/ derived volume
|
||||
* Raise CSA tag limit to 1000, parametrize for future relaxing
|
||||
* Coerce data types to match NIfTI intent codes when writing GIFTI data
|
||||
arrays
|
||||
+ Maintenance
|
||||
* Require h5py 2.10 for Windows + Python < 3.6 to resolve unexpected dtypes
|
||||
in Minc2 data
|
||||
+ API changes and deprecations
|
||||
* Deprecate ``nicom.dicomwrappers.Wrapper.get_affine()`` in favor of ``affine``
|
||||
property; final removal in nibabel 4.0
|
||||
- Update to version 2.5.0
|
||||
+ Enhancements
|
||||
* Add SerializableImage class with to/from_bytes methods
|
||||
* Check CIFTI-2 data shape matches shape described by header
|
||||
+ Bug fixes
|
||||
* Handle stricter numpy casting rules in tests
|
||||
* TRK header fields flipped in files written on big-endian systems
|
||||
* Load multiframe ECAT images with Python 3
|
||||
+ Maintenance
|
||||
* Fix CodeCov paths on Appveyor for more accurate coverage
|
||||
* Move to setuptools and reduce use ``nisext`` functions
|
||||
* Better handle test setup/teardown
|
||||
+ API changes and deprecations
|
||||
* Effect threatened warnings and set some deprecation timelines
|
||||
* Trackvis methods now default to v2 formats
|
||||
* ``nibabel.trackvis`` scheduled for removal in nibabel 4.0
|
||||
* ``nibabel.minc`` and ``nibabel.MincImage`` will be removed in nibabel 3.0
|
||||
- Drop upstream-included fix_numpy_1_17.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 18:56:10 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
@ -12,38 +12,35 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-nibabel
|
||||
Version: 2.4.1
|
||||
Version: 2.5.1
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Tool to access multiple neuroimaging data formats
|
||||
Url: http://nipy.org/nibabel
|
||||
Group: Development/Languages/Python
|
||||
License: MIT
|
||||
URL: https://nipy.org/nibabel
|
||||
Source: https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix_numpy_1_17.patch gh#/nipy/nibabel#768
|
||||
Patch1: fix_numpy_1_17.patch
|
||||
BuildRequires: %{python_module setuptools >= 30.3.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-numpy >= 1.8
|
||||
Requires: python-six >= 1.3
|
||||
Recommends: python-dicom >= 0.9.9
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module numpy >= 1.8}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose >= 0.10.1}
|
||||
BuildRequires: %{python_module numpy >= 1.8}
|
||||
BuildRequires: %{python_module six >= 1.3}
|
||||
BuildRequires: python-bz2file
|
||||
# /SECTION
|
||||
Requires: python-numpy >= 1.8
|
||||
Requires: python-six >= 1.3
|
||||
%ifpython2
|
||||
Requires: python-bz2file
|
||||
%endif
|
||||
Recommends: python-dicom >= 0.9.9
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -56,7 +53,6 @@ very limited support for DICOM.
|
||||
|
||||
%prep
|
||||
%setup -q -n nibabel-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
Loading…
Reference in New Issue
Block a user