[pyoperators] 01/04: Imported Upstream version 0.13.13
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jun 14 11:25:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pyoperators.
commit d5f1a9819096d6d4d372eee6babc69b9f6dd4a1d
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon Jun 13 09:14:24 2016 +0100
Imported Upstream version 0.13.13
---
PKG-INFO | 2 +-
pyoperators.egg-info/PKG-INFO | 2 +-
pyoperators.egg-info/SOURCES.txt | 2 ++
pyoperators/__init__.py | 2 +-
pyoperators/config.py | 2 +-
test/common.py | 11 +++++++----
test/test_iterative.py | 2 +-
7 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index 2cf855f..dcd42c5 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pyoperators
-Version: 0.13.12
+Version: 0.13.13
Summary: Operators and solvers for high-performance computing.
Home-page: http://pchanial.github.com/pyoperators
Author: Pierre Chanial
diff --git a/pyoperators.egg-info/PKG-INFO b/pyoperators.egg-info/PKG-INFO
index 2cf855f..dcd42c5 100644
--- a/pyoperators.egg-info/PKG-INFO
+++ b/pyoperators.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pyoperators
-Version: 0.13.12
+Version: 0.13.13
Summary: Operators and solvers for high-performance computing.
Home-page: http://pchanial.github.com/pyoperators
Author: Pierre Chanial
diff --git a/pyoperators.egg-info/SOURCES.txt b/pyoperators.egg-info/SOURCES.txt
index 3030ad5..8f8df83 100644
--- a/pyoperators.egg-info/SOURCES.txt
+++ b/pyoperators.egg-info/SOURCES.txt
@@ -4,6 +4,8 @@ README.rst
setup.py
/home/chanial/software-anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h
/home/chanial/software-anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ufuncobject.h
+/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h
+/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h
pyoperators/__init__.py
pyoperators/config.py
pyoperators/core.py
diff --git a/pyoperators/__init__.py b/pyoperators/__init__.py
index 8909091..109174a 100644
--- a/pyoperators/__init__.py
+++ b/pyoperators/__init__.py
@@ -38,4 +38,4 @@ I = IdentityOperator()
O = ZeroOperator()
X = Variable('X')
-__version__ = u'0.13.12'
+__version__ = u'0.13.13'
diff --git a/pyoperators/config.py b/pyoperators/config.py
index e509d03..fd664e7 100644
--- a/pyoperators/config.py
+++ b/pyoperators/config.py
@@ -25,7 +25,7 @@ if LOCAL_PATH is None:
if not _os.path.exists(LOCAL_PATH):
try:
_os.makedirs(LOCAL_PATH)
- except IOError:
+ except OSError:
_warn("User path '{0}' cannot be created.".format(LOCAL_PATH),
_PyOperatorsWarning)
elif not _os.access(LOCAL_PATH, _os.W_OK):
diff --git a/test/common.py b/test/common.py
index ed1d049..f075806 100644
--- a/test/common.py
+++ b/test/common.py
@@ -6,10 +6,13 @@ from pyoperators.utils.testing import assert_eq
DTYPES = [np.dtype(t) for t in (np.uint8, np.int8, np.uint16, np.int16,
np.uint32, np.int32, np.uint64, np.int64,
- np.float16, np.float32, np.float64, np.float128,
- np.complex64, np.complex128, np.complex256)]
-COMPLEX_DTYPES = [np.dtype(t) for t in (np.complex64, np.complex128,
- np.complex256)]
+ np.float16, np.float32, np.float64, np.complex64, np.complex128)]
+COMPLEX_DTYPES = [np.dtype(t) for t in (np.complex64, np.complex128)]
+if hasattr(np, 'float128'):
+ DTYPES += [np.dtype(np.float128)]
+if hasattr(np, 'complex256'):
+ DTYPES += [np.dtype(np.complex256)]
+ COMPLEX_DTYPES += [np.dtype(np.complex256)]
class ndarray1(np.ndarray):
diff --git a/test/test_iterative.py b/test/test_iterative.py
index 2e0ced8..b4af299 100644
--- a/test/test_iterative.py
+++ b/test/test_iterative.py
@@ -44,7 +44,7 @@ def test_classes_inv():
y = A(x)
algo = c(A, y, maxiter=100, tol=1e-7)
xe = algo.run()
- assert_allclose(x, xe, rtol=1e-6)
+ assert_allclose(x, xe, atol=1e-5)
for A in operator_list:
for x in vector_list:
for c in classes:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyoperators.git
More information about the debian-science-commits
mailing list