When attempting to install Numeric 17.0 with Python 1.5.2 and Distutils 1.0 on Red Hat 7.0, I get the following error after issuing the command 'python setup.py install' Traceback (innermost last): File "setup.py", line 15, in ? vs = map(string.atoi, v.groups()) AttributeError: 'None' object has no attribute 'groups' This error occurs regardless of whether or not I am root. I have also tried uninstalling the Red Hat Python packages and installing all from source, but I get the same error. Any help would be appreciated. Thanks.
Hi all, I just got done installing Python 2.1 and NumPy 20 on Linux (which was far more work that it should have been) just so that I could get rich comparisons. I then got a version of the PDF doc, dated march30, 2001, and it is out of date with regard to rich comparisons. This brings up two questions. 1) Is the doc in CVS or something somewhere so that others (me) could contribute to it? 2) Is there a rich comparisons way to do "and" and "or"? It's great that: logical_and(greater(a,b),less(a,c)) can now be: logical_and(a > b, a < c) but of course, what I would really like is: (a > b) and (a < c) Are there any nice ways to do this?? -Chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------
Hi all, I was surprised to find that the functions: round, floor, and ceil are not included as ufuncs in NumPy. Have I just missed them? Where can I find them if they do exist? If they don't is there a reason for it, or has just no one gotten around to writing them? If the latter, can someone give me some pointers as to how I would go about writting them myself. It certainly seems as though it would be easy if modeled after the other unary ufuncs, but I'm a little unsure from the source where I would put it all. thanks, -Chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------
On Thu, Jul 26, 2001 at 11:46:06AM -0700, Chris Barker wrote:
Hi all,
I was surprised to find that the functions:
round, floor, and ceil are not included as ufuncs in NumPy.
Have I just missed them? Where can I find them if they do exist?
Python 2.0.1 (#0, Jul 3 2001, 12:36:30) [GCC 2.95.4 20010629 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information.
import Numeric print Numeric.__version__ 20.1.0 Numeric.floor <ufunc 'floor'> Numeric.ceil <ufunc 'ceil'> Numeric.around <function around at 0x807439c>
The last one isn't a ufunc, but it's composed of them. I would guess that it's a function so that it can match Python's rounding behavior. -- Robert Kern kern@caltech.edu "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
Robert Kern wrote:
Numeric.floor <ufunc 'floor'> Numeric.ceil <ufunc 'ceil'> Numeric.around <function around at 0x807439c>
DOH! I had just been looking for round, but Ithought I had checked for ceil and floor as wel, but I guess not. sorry for the stupid question. I can point out that none of these is in the doc. Paul, is there any way any of us can contribute to the doc??
The last one isn't a ufunc, but it's composed of them. ] It seems to act like one:
floor([3.3,3.5,3.6]) array([ 3., 3., 3.])
probably because it is composed of them.
a function so that it can match Python's rounding behavior.
It does seem to match Python's native round, which makes me wonder why it can't be called "round", since it will behave the same for regulat python number types. NOt a big deal, of course. -thanks, Chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------
Hi, Folllowing could be a bug:
Traceback (most recent call last): File "<input>", line 1, in ? File "macintosh hd:compiler:python 2.0:extensions:numerical:lib:packages:RandomArray.py", line 120, in multivariate_normal final_shape.append(mean.shape[0]) AttributeError: 'tuple' object has no attribute 'append'
should be: final_shape=final_shape+(mean.shape[0],) or am I missing something? Thanks ################################# Aureli Soria Frisch Fraunhofer IPK Dept. Pattern Recognition post: Pascalstr. 8-9, 10587 Berlin, Germany e-mail:aureli@ipk.fhg.de fon: +49 30 39006-150 fax: +49 30 3917517 #################################
participants (4)
-
Aureli Soria Frisch
-
Chris Barker
-
Michael D. Risser
-
Robert Kern