[pypy-svn] pypy numpy-exp: Remove this file, it's dead ATM. Fish it out of history if you want the one function that would need to mostly be rewritten anyways.
alex_gaynor
commits-noreply at bitbucket.org
Thu May 5 02:13:43 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-exp
Changeset: r43902:40189e8d428a
Date: 2011-05-04 20:13 -0400
http://bitbucket.org/pypy/pypy/changeset/40189e8d428a/
Log: Remove this file, it's dead ATM. Fish it out of history if you want
the one function that would need to mostly be rewritten anyways.
diff --git a/pypy/module/micronumpy/test/test_numpy.py b/pypy/module/micronumpy/test/test_numpy.py
--- a/pypy/module/micronumpy/test/test_numpy.py
+++ b/pypy/module/micronumpy/test/test_numpy.py
@@ -1,6 +1,7 @@
import py
from pypy.conftest import gettestobjspace
+
class AppTestNumpyLike(object):
def setup_class(cls):
cls.space = gettestobjspace(usemodules=('micronumpy',))
diff --git a/pypy/module/micronumpy/ufunc.py b/pypy/module/micronumpy/ufunc.py
deleted file mode 100644
--- a/pypy/module/micronumpy/ufunc.py
+++ /dev/null
@@ -1,21 +0,0 @@
-
-from numarray import NumArray
-from pypy.interpreter.baseobjspace import ObjSpace, W_Root
-from pypy.interpreter.error import OperationError
-
-def minimum(space, w_a, w_b):
- if not isinstance(w_a, NumArray) or not isinstance(w_b, NumArray):
- raise OperationError(space.w_TypeError,
- space.wrap("expecting NumArrat object"))
- if w_a.dim != w_b.dim:
- raise OperationError(space.w_ValueError,
- space.wrap("minimum of arrays of different length"))
- res = NumArray(space, w_a.dim, 'i')
- for i in range(len(w_a.storage)):
- one = w_a.storage[i]
- two = w_b.storage[i]
- if one < two:
- res.storage[i] = one
- else:
- res.storage[i] = two
- return space.wrap(res)
More information about the Pypy-commit
mailing list