You can subscribe to this list here.
2000 |
Jan
(8) |
Feb
(49) |
Mar
(48) |
Apr
(28) |
May
(37) |
Jun
(28) |
Jul
(16) |
Aug
(16) |
Sep
(44) |
Oct
(61) |
Nov
(31) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(56) |
Feb
(54) |
Mar
(41) |
Apr
(71) |
May
(48) |
Jun
(32) |
Jul
(53) |
Aug
(91) |
Sep
(56) |
Oct
(33) |
Nov
(81) |
Dec
(54) |
2002 |
Jan
(72) |
Feb
(37) |
Mar
(126) |
Apr
(62) |
May
(34) |
Jun
(124) |
Jul
(36) |
Aug
(34) |
Sep
(60) |
Oct
(37) |
Nov
(23) |
Dec
(104) |
2003 |
Jan
(110) |
Feb
(73) |
Mar
(42) |
Apr
(8) |
May
(76) |
Jun
(14) |
Jul
(52) |
Aug
(26) |
Sep
(108) |
Oct
(82) |
Nov
(89) |
Dec
(94) |
2004 |
Jan
(117) |
Feb
(86) |
Mar
(75) |
Apr
(55) |
May
(75) |
Jun
(160) |
Jul
(152) |
Aug
(86) |
Sep
(75) |
Oct
(134) |
Nov
(62) |
Dec
(60) |
2005 |
Jan
(187) |
Feb
(318) |
Mar
(296) |
Apr
(205) |
May
(84) |
Jun
(63) |
Jul
(122) |
Aug
(59) |
Sep
(66) |
Oct
(148) |
Nov
(120) |
Dec
(70) |
2006 |
Jan
(460) |
Feb
(683) |
Mar
(589) |
Apr
(559) |
May
(445) |
Jun
(712) |
Jul
(815) |
Aug
(663) |
Sep
(559) |
Oct
(930) |
Nov
(373) |
Dec
|
From: Sasha <nd...@ma...> - 2006-07-28 21:10:07
|
On 7/28/06, Stefan van der Walt <st...@su...> wrote: > Would anyone mind if the change was made? If not, where should they > go? (numpy/add_newdocs.py or numpy/core/something) Another +1 for numpy/add_newdocs.py and a suggestion: check for Py_OptimizeFlag > 1 in add_newdoc so that docstrings are not loaded if python is invoked with -OO option. This will improve import numpy time and reduce the memory footprint. I'll make the change if no one objects. |
From: Nick F. <nv...@MI...> - 2006-07-28 20:55:42
|
On Jul 28, 2006, at 4:47 PM, David M. Cooke wrote: > On Fri, 28 Jul 2006 16:25:00 -0400 > Nick Fotopoulos <nv...@MI...> wrote: > >> Dear all, >> >> I had a working C extension, but after upgrading to a recent numpy >> from SVN, I can no longer compile it. I've fixed the deprecation >> warnings, but can't get past this: >> >> frgetvect.c:51: error: 'intp' undeclared (first use in this function) >> >> Now, I'm quite confused since I thought that intp should be a global >> thing, not numpy related, and I believe I'm using the shipped Apple >> gcc version. > > To avoid namespace clashes with other libraries, we've switched to > adding a > unique prefix 'npy_' to types (and NPY_ to #defines). You can > either change > your code to use 'npy_intp', or add > > #include "numpy/noprefix.h" > > to the top. > Aha! I was under the impression that intp was a native C thing. Thanks for clarifying. Take care, Nick |
From: David M. C. <co...@ph...> - 2006-07-28 20:47:53
|
On Fri, 28 Jul 2006 16:25:00 -0400 Nick Fotopoulos <nv...@MI...> wrote: > Dear all, > > I had a working C extension, but after upgrading to a recent numpy > from SVN, I can no longer compile it. I've fixed the deprecation > warnings, but can't get past this: > > frgetvect.c:51: error: 'intp' undeclared (first use in this function) > > Now, I'm quite confused since I thought that intp should be a global > thing, not numpy related, and I believe I'm using the shipped Apple > gcc version. To avoid namespace clashes with other libraries, we've switched to adding a unique prefix 'npy_' to types (and NPY_ to #defines). You can either change your code to use 'npy_intp', or add #include "numpy/noprefix.h" to the top. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |co...@ph... |
From: Robert K. <rob...@gm...> - 2006-07-28 20:38:18
|
Christopher Barker wrote: > Keith Goodman wrote: >> diag(NxN matrix) should return a Nx1 matrix >> diag(Nx1 or 1xN matrix) should return a NxN matrix > > This is the key problem: extracting the diagonal of a matrix and > creating a matrix from a diagonal are two different operations: > overloading one function to do both was a bad idea to begin with. > > Maybe we should just keep diag() as is is for backward compatibility > (deprecated), and make: > > get_diag() and make_diag() instead. > > Then it would be unambiguous what you wanted with: > > make_diag(<Nx1array>) > > You can call them something else, but you get the idea. As .diagonal() is a method on both arrays and matrices, we don't need a separate get_diag(). In the abstract, I heartily approve. However, I'm not sure that deprecation in favor of a clumsier name is going to be effective in practice. diag([a, b, c]) is just too tempting and will remain an attractive nuisance. It matches mathematical notation ever so nicely. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Nick F. <nv...@MI...> - 2006-07-28 20:25:12
|
Dear all, I had a working C extension, but after upgrading to a recent numpy from SVN, I can no longer compile it. I've fixed the deprecation warnings, but can't get past this: frgetvect.c:51: error: 'intp' undeclared (first use in this function) Now, I'm quite confused since I thought that intp should be a global thing, not numpy related, and I believe I'm using the shipped Apple gcc version. Version info: nvf@whitedwarf:~/temp/v6r20/pyfrgetvect$ python -V Python 2.4.1 nvf@whitedwarf:~/temp/v6r20/pyfrgetvect$ python -c "import numpy; print numpy.__version__" 1.1.2881 nvf@whitedwarf:~/temp/v6r20/pyfrgetvect$ gcc --version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061) Can anyone help me? Thanks, Nick Full build output: nvf@whitedwarf:~/temp/v6r20/pyfrgetvect$ python setup.py build running build running build_ext building 'frgetvect' extension C compiler: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict- prototypes creating build creating build/temp.darwin-8.7.0-Power_Macintosh-2.4 compile options: '-DMAJOR_VERSION=0 -DMINOR_VERSION=2 -I../src -I/ Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include -I/Library/Frameworks/Python.framework/ Versions/2.4/include/python2.4 -c' extra options: '-w' gcc: frgetvect.c frgetvect.c: In function 'frgetvect': frgetvect.c:51: error: 'intp' undeclared (first use in this function) frgetvect.c:51: error: (Each undeclared identifier is reported only once frgetvect.c:51: error: for each function it appears in.) frgetvect.c:51: error: parse error before "shape" frgetvect.c:138: error: 'shape' undeclared (first use in this function) frgetvect.c:138: error: parse error before "nData" frgetvect.c: In function 'frgetvect': frgetvect.c:51: error: 'intp' undeclared (first use in this function) frgetvect.c:51: error: (Each undeclared identifier is reported only once frgetvect.c:51: error: for each function it appears in.) frgetvect.c:51: error: parse error before "shape" frgetvect.c:138: error: 'shape' undeclared (first use in this function) frgetvect.c:138: error: parse error before "nData" error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp- precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall - Wstrict-prototypes -DMAJOR_VERSION=0 -DMINOR_VERSION=2 -I../src -I/ Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/numpy/core/include -I/Library/Frameworks/Python.framework/ Versions/2.4/include/python2.4 -c frgetvect.c -o build/ temp.darwin-8.7.0-Power_Macintosh-2.4/frgetvect.o -w" failed with exit status 1 |
From: David H. <dav...@gm...> - 2006-07-28 20:18:53
|
2006/7/28, Stefan van der Walt <st...@su...>: > > Hi, > > Travis recently advertised the add_docstring and add_newdoc functions, > which are used to add documentation to functions written in C. This > brings the advantage that you don't have to recompile everytime you > change a docstrings, and also that the docstrings are much simpler to > format (no more "\n\" tokens all over the place). > > I took all the docstrings from numpy.core.src.multiarray and formatted > them to be used with add_docstring. I have two questions: > > Would anyone mind if the change was made? I don't, I wanted to do the same thing. numpy/add_newdocs.py +1 David |
From: Poitras, D. <Dan...@nr...> - 2006-07-28 20:07:43
|
Hello,=20 =20 I tried different arcsin functions on a "complex" number (z=3D0.52+0j) = and obtained=20 the following results:=20 =20 cmath.asin(z) gives (0.54685095069594414+0j) #okay=20 =20 -1j*log(1j*z+sqrt(1-z**2)) gives (0.54685095069594414+0j) #okay, by = definition=20 =20 numarray.arcsin(z) gives (0.54685095069594414+0j) #still okay=20 =20 but=20 =20 numpy.arcsin(z) gives (0.54685095069594414+0.54685095069594414j) = #bug??=20 =20 Is it a bug in numpy, or is there another explanation?=20 =20 Thanks=20 =20 Daniel Poitras=20 Ottawa |
From: Christopher B. <Chr...@no...> - 2006-07-28 20:03:36
|
Keith Goodman wrote: > diag(NxN matrix) should return a Nx1 matrix > diag(Nx1 or 1xN matrix) should return a NxN matrix This is the key problem: extracting the diagonal of a matrix and creating a matrix from a diagonal are two different operations: overloading one function to do both was a bad idea to begin with. Maybe we should just keep diag() as is is for backward compatibility (deprecated), and make: get_diag() and make_diag() instead. Then it would be unambiguous what you wanted with: make_diag(<Nx1array>) You can call them something else, but you get the idea. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: David M. C. <co...@ph...> - 2006-07-28 19:39:00
|
On Fri, 28 Jul 2006 12:17:39 -0500 "Tom Denniston" <tom...@al...> wrote: > It seems that object arrays will not pickle if they have a nan when > the pickle protocol is set to binary. From what I can tell the object > array simply delegates to python (which makes sense) which in turn > cannot pickle nans in binary format. It is unfortunate because it is > very useful to have heterogenous arrays that include nans. What do > other people do in this situation? Does anyone know why python has > this limitation? Is there an intelligent workaround other than search > and replace? Would it be worth it to put an intelligent workaround > into numpy so it is transparent to the user? I was wondering what > people thought. > > Code that reproduces the problem: > > This is regular python: > pickle.dumps(numpy.nan, 2) > SystemError: frexp() result out of range > > This is fine in numpy: > pickle.dumps(numpy.array([numpy.nan]), 2) > > This breaks: > pickle.dumps(numpy.array([numpy.nan], numpy.PyObject), 2) > SystemError: frexp() result out of range I believe this will be fixed in Python 2.5 (see http://www.python.org/sf/445484). I guess your best alternative would be to use a numpy scalar object (like double) instead of a Python float for NaN's. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |co...@ph... |
From: Andrew S. <str...@as...> - 2006-07-28 19:28:26
|
Tom Denniston wrote: >Code that reproduces the problem: > >This is regular python: >pickle.dumps(numpy.nan, 2) >SystemError: frexp() result out of range > >This is fine in numpy: >pickle.dumps(numpy.array([numpy.nan]), 2) > >This breaks: >pickle.dumps(numpy.array([numpy.nan], numpy.PyObject), 2) >SystemError: frexp() result out of range > > It seems to me that the example that shows what you want is the only example that numpy has control over, anyway. In the other two cases, you're really using a Python object. So it's really a Python question as to why it can't pickle nans. My understanding on this is weak, but here's one summary, albeit dated: http://www.python.org/dev/summary/2000-10-1.html Here's something more recent: http://mail.python.org/pipermail/python-list/2005-July/290272.html NumPy sidesteps these issues by "forcing" IEEE-754 behavior with clever C written AFAIK by the numarray people. These apparently work even if the C compiler doesn't "officially" support IEEE-754, but it's not going to work on every platform that Python targets. You may also want to take a look at http://scipy.org/FAQ#head-fff4d6fce7528974185715153cfbc1a191dcb915 |
From: Darren D. <dd...@co...> - 2006-07-28 18:33:02
|
On Wednesday 26 July 2006 13:22, Travis Oliphant wrote: > Andrew Jaffe wrote: > > Hi- > > > > On PPC Mac OSX universal build 2.4.3, gcc 4.0, > > > > > > In [1]: import numpy as N > > > > In [2]: print N.__version__ > > 1.0.2897 > > > > In [3]: N.random.uniform(0,1) > > Segmentation fault > > > > (This originally showed up in the Ticket 83 regression test during > > numpy.test()...) > > This should be O.K. now. I dont know if this is related or not, but I just did an update from the trunk ('1.0b2.dev2918') and discovered the following error: ====================================================================== FAIL: Ticket #99 ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/numpy/core/tests/test_regression.py", line 182, in check_intp self.failUnlessRaises(OverflowError,N.intp,'0xb72a7008',16) AssertionError: OverflowError not raised ---------------------------------------------------------------------- I'm compiling with gcc-4.1.1, python-2.4.3. Darren |
From: Daniel P. <dan...@nr...> - 2006-07-28 18:20:29
|
Hello, I tried different arcsin functions on a complex number (z=0.52+0j) and obtained the following results: cmath.asin(z) gives (0.54685095069594414+0j) #okay -1j*log(1j*z+sqrt(1-z**2)) gives (0.54685095069594414+0j) #okay, by definition numarray.arcsin(z) gives (0.54685095069594414+0j) #still okay but numpy.arcsin(z) gives (0.54685095069594414+0.54685095069594414j) #bug?? Is it really a bug in numpy, or is there another explanation? Thanks Daniel Poitras Ottawa |
From: Tom L. <lo...@as...> - 2006-07-28 18:16:30
|
PS: Sorry, I should've mentioned it's 1.0b2.dev2915 that I'm using, not 1.0b1. -Tom ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Tom L. <lo...@as...> - 2006-07-28 18:12:50
|
Hi folks, It is turning out to be much more of a headache moving from numpy-0.9.x to numpy-1.0b1 than it ever was moving from Numeric to numpy. Could someone please throw together some release notes (the scipy & sourceforge RN pages are blank) or a Wiki page warning what has to be changed? Here are some stumbling blocks I've come across: * Type names are all now lower case. I know this started happening late in 0.9.x, but I only know it by accident, via some email from Travis. This is just one example of the kind of change that really needs to be prominently noted somewhere. * .nonzero() now returns a 1-tuple with an array of indices, for a 1-d array. Before it returned an array of indices. * In the C API, ContiguousFromObject is now ContiguousFromAny. I am surprised that my libraries compile with no errors; I only get a runtime error. Shouldn't I be warned about this at compile-time? * mtrand still uses ContiguousFromObject in a few places; these give exceptions when you call, e.g., setstate. * rand, fft, ift are no longer in the numpy namespace. Is this a permanent change or a bug? There are probably other obstacles I'll come across, but this is what I encountered in code that ran perfectly with 0.9.6. After several hours of work it's still not running. -Tom Loredo ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Travis O. <oli...@ie...> - 2006-07-28 17:57:58
|
Rolf Wester wrote: > David Grant wrote: > >> A factor of 2! Is that short for a factor of **2? >> >> > That means Numeric/weave takes about 17 s (on my PC), and the > numby/weave version takes about 32 s. > Please show your code. There are several factors that have changed here. For example, Python 2.4 is different that Python 2.3. There are only a few usages when Numeric is faster than NumPy and in most of these using regular Python lists is faster than Numeric and NumPy anyway. Nonetheless, there are still improvements that can be made to NumPy. Which version of NumPy are you using? -Travis |
From: Tom D. <tom...@al...> - 2006-07-28 17:17:46
|
It seems that object arrays will not pickle if they have a nan when the pickle protocol is set to binary. From what I can tell the object array simply delegates to python (which makes sense) which in turn cannot pickle nans in binary format. It is unfortunate because it is very useful to have heterogenous arrays that include nans. What do other people do in this situation? Does anyone know why python has this limitation? Is there an intelligent workaround other than search and replace? Would it be worth it to put an intelligent workaround into numpy so it is transparent to the user? I was wondering what people thought. Code that reproduces the problem: This is regular python: pickle.dumps(numpy.nan, 2) SystemError: frexp() result out of range This is fine in numpy: pickle.dumps(numpy.array([numpy.nan]), 2) This breaks: pickle.dumps(numpy.array([numpy.nan], numpy.PyObject), 2) SystemError: frexp() result out of range --Tom |
From: Robert K. <rob...@gm...> - 2006-07-28 17:00:46
|
Sven Schreiber wrote: > Robert Kern schrieb: >> Sven Schreiber wrote: >>> That would be fine with me. However, I'd like to point out that after >>> some bug-squashing currently all numpy functions deal with >>> numpy-matrices correctly, afaik. The current behavior of numpy.diag >>> could be viewed as a violation of that principle. (Because if x has >>> shape (n,1), diag(x) returns only the first entry, which is pretty >>> stupid for a diag-function operating on a vector.) >> I don't think so. It's operating exactly as it is documented to. It doesn't do >> what you want, but it's not supposed to read your mind and guess that you are >> treating (n,1) and (1,n) arrays as linear algebraic vectors and that you want to >> form a diagonal matrix from that vector. It handles matrix objects just fine; it >> does not obey a particular convention that you want to use, though. That's >> neither broken nor a violation of the principle that most numpy functions should >> accept matrix objects; it's just not what you want. > > Ok, let me get some facts straight: > > 1. If you're using numpy-matrices, algebraic vectors are *automatically* > (n,1) or (1,n). I didn't make it up, and nobody has to read my mind to > understand that; it's just a *fact* of numpy (and you knew that long > before I was even aware of numpy's existence ;-). > > 2. I never claimed that the documentation of diag is wrong. I'm just > questioning whether its behavior with vectors represented as > numpy-matrices (which have shape (n,1) or (1,n) and are therefore always > 2d in the numpy sense) is really intended, because I currently doubt > that it's useful for *anyone*. (Of course you can prove me wrong there...) > > 3. The cited principle is not (only) about accepting matrices, it's > about "honoring" them by either preserving their type for the output, > and of course by doing the equivalent thing as for the equivalent > numpy-array input. Currently, however, diag() is not providing the > "vector-to-diagonal-matrix" functionality if you work with > numpy-matrices (modulo some obvious workarounds). To me, that's a partly > broken function, and it's *not* handling matrix objects "just fine". Unfortunately, there is a many-to-one correspondence between numpy-array inputs and matrix-array inputs. Going the other way is ambiguous. There is still some guessing involved. >> I don't want to introduce a backwards-compatibility-breaking special case to the >> function. "Special cases aren't special enough to break the rules." Different >> functionality should go into a different function. > > I hope (but somehow doubt...) that I've convinced you that it's actually > about applying the same logical rule to all input types, not about > introducing a special case. But you can't code it without special casing. None of the functions should be written like this: if type(input) is matrix: # do this one thing else: # do a different thing They belong in two different functions. Or methods. You can't extend it to the n different subclasses of ndarray that people might want to use. This kind of special casing ought to give you screaming jibblies. The current behavior of diag() already gives me the screaming jibblies given that it both extracts a diagonal from an MxN array and creates a NxN array from an N array. <shudder> If I wrote an API like that at work, my project manager would come over to my office and Have Words with me. And then tell me to rewrite it. It's simply bad design. I think making a method on matrix objects that does what you want is probably your best bet. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Travis O. <oli...@ie...> - 2006-07-28 16:59:17
|
Travis Oliphant wrote: > I can verify that this now works with numpy 1.0b1 on Python 2.3. The > change was using an updated Pyrex for generating mtrand.c (it no longer > calls PyLong_AsUnsignedLong on integer objects as it did before). > > Scratch that. I meant it works with latest numpy (will be 1.0b2) because the mtrand.c was not re-generated until recently. -Travis |
From: Travis O. <oli...@ie...> - 2006-07-28 16:54:37
|
Gary Ruben wrote: > See below: > > Robert Kern wrote: > >> Gary Ruben wrote: >> >>> Should >>> >>> seed(1) >>> act the same as >>> >>> seed(array([1])) >>> in the random module? >>> >> No. They use slightly different mechanisms to seed. The integer uses RandomKit's >> seeding routine. I borrowed Python's mechanism for seeding from an array of >> integers. Now that it comes up, though, it is probably a good idea to use the >> same mechanism for both cases. >> >> >>> It generates a traceback with the Windows 1.0b1 binary. >>> >> Please always copy-and-paste tracebacks when reporting bugs. It works for me >> with r2881; I'll rebuild with a later version and try again. >> > > Thanks Robert, > Here it is for reference. Not a very deep traceback: > It looks like this is a Python 2.3 error. In Python 2.4, the PyLong_AsUnsignedLong was changed to accept Python integers as well as Python longs. The problem with fixing it is I'm not sure where PyLong_AsUnsignedLong is being called. I can't find that call in the current source code. It's possible that Pyrex changed and this function is no longer being used in mtrand.c -Travis |
From: Travis O. <oli...@ie...> - 2006-07-28 16:53:52
|
Gary Ruben wrote: > See below: > > Robert Kern wrote: > >> Gary Ruben wrote: >> >>> Should >>> >>> seed(1) >>> act the same as >>> >>> seed(array([1])) >>> in the random module? >>> >> No. They use slightly different mechanisms to seed. The integer uses RandomKit's >> seeding routine. I borrowed Python's mechanism for seeding from an array of >> integers. Now that it comes up, though, it is probably a good idea to use the >> same mechanism for both cases. >> >> >>> It generates a traceback with the Windows 1.0b1 binary. >>> >> Please always copy-and-paste tracebacks when reporting bugs. It works for me >> with r2881; I'll rebuild with a later version and try again. >> I can verify that this now works with numpy 1.0b1 on Python 2.3. The change was using an updated Pyrex for generating mtrand.c (it no longer calls PyLong_AsUnsignedLong on integer objects as it did before). -Travis |
From: Mike R. <mik...@al...> - 2006-07-28 16:47:31
|
On 7/24/06, Travis Oliphant <oli...@ie...> wrote: > > Mike Ressler wrote: > > I'm trying to work with memmaps on very large files, i.e. > 2 GB, up > > to 10 GB. Can't believe I'm really the first, but so be it. I just discovered the problem. All the places where > PyObject_As<Read/Write>Buffer is used needs to have the final argument > changed to Py_ssize_t (which in arrayobject.h is defined as int if you > are using less than Python 2.5). > > This should be fixed in SVN shortly.... Yeess! My little script can handle everything I've thrown at it now. It can read a 10 GB raw file, strip the top 16 bits, rearrange pixels, byte swap, and write it all back to a 5 GB file in 16 minutes flat. Not bad at all. And I've verified that the output is correct ... If someone can explain the rules of engagement for Lightning Talks, I'm thinking about presenting this at SciPy 2006. Then you'll see there is a reason for my madness. As an aside, the developer pages could use some polish on explaining the different svn areas, and how to get what one wants. An svn checkout as described on the page gets you the 1.1 branch that DOES NOT have the updated memmap fix. After a minute or two of exploring, I found that "svn co http://svn.scipy.org/svn/numpy/branches/ver1.0/numpy numpy" got me what I wanted. Thanks for your help and the quick solution. FWIW, I got my copy of the book a couple of weeks ago; very nice. Mike -- mik...@al... |
From: Stefan v. d. W. <st...@su...> - 2006-07-28 14:54:18
|
Hi, Travis recently advertised the add_docstring and add_newdoc functions, which are used to add documentation to functions written in C. This brings the advantage that you don't have to recompile everytime you change a docstrings, and also that the docstrings are much simpler to format (no more "\n\" tokens all over the place). I took all the docstrings from numpy.core.src.multiarray and formatted them to be used with add_docstring. I have two questions: Would anyone mind if the change was made? If not, where should they go? (numpy/add_newdocs.py or numpy/core/something) Thanks for the feedback. St=E9fan |
From: Travis O. <oli...@ee...> - 2006-07-28 13:53:22
|
Sebastian Haase wrote: >Hi, >Essentially I'm looking for the equivalent of what was in numarray: > from numarray import random_array > random_array.poisson(arr) > > > > I've just updated the mtrand library to allow this. It will be in 1.0b2 So, if you have latest SVN you can do from numpy import random random.poisson(arr) to do what you want. -Travis |
From: <yu...@to...> - 2006-07-28 13:52:46
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <style type="text/css"> <!-- .td { font-size: 12px; color: #313131; line-height: 20px; font-family: "Arial", "Helvetica", "sans-serif"; } --> </style> </head> <body leftmargin="0" background="http://bo.sohu.com//images/img20040502/dj_bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="31" background="http://igame.sina.com.cn/club/images/topmenu/topMenu_8.gif" class="td"><div align="center"><font color="#FFFFFF">主办单位:易腾企业管理咨询有限公司</font></div></td> </tr> </table> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="62" bgcolor="#8C8C8C"> <div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="0" height="69"> <tr> <td height="67" bgcolor="#F3F3F3"><div align="center"><font lang="ZH-CN" color="#FF0000" size="6"><b>车间管理人员八项修炼</b></font></div></td> </tr> </table> </div></td> </tr> </table> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0" class="td" height="1411"> <tr> <td height="1415" bgcolor="#FFFFFF"> <div align="center"> <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17%" height="20" bgcolor="#BF0000" class="td"> <div align="center"><font color="#FFFFFF">[课 程 背 景]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="74" colspan="2" class="td"> <p ALIGN="JUSTIFY"><font LANG="ZH-CN"> </font><font lang="ZH-CN" size="2"> <span style="mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">车间是生产型企业的中心,车间和制造部门管理的好坏,直接影响着产品“质量、成本、交货期”各项指标的完成,伴随着微利时代的到来和组织结构趋向扁平化的今天,车间管理在企业中将扮演愈加重要的角色!<br> 而车间管理人员常常面临:<br> 1、工作做了不少,每天也忙忙碌碌,管理好象还是理不出头绪,如何有效的推进车间管理工作?<br> 2、品种多,计划变化频繁,生产任务忽高忽低,如何提高生产车间柔型,有效的保证生产进度?<br> 3、生产过程不稳定,机器故障和产品质量问题常常发生,如何有效的控制提高质量和提高设备利用率<br> 4、现场很多事情需要依靠下属和同级部门共同努力,如何有效沟通和协调激发下属的主动性和责任心? </span></font></td> </tr> </table> </div> <div align="center" style="width: 671; height: 1"> </div> <div align="center"> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[课 程 大 纲]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p><font size="2"><b><font color="#0000FF">◇ 车间管理人员的角色定位</font></b><br> 车间管理人员的职责与角色认知<br> 如何建立好的管理的基础<br> 如何成为好的车间现场管理人员<br> 车间管理工作的重心与要点<br> <b><font color="#0000FF">◇ 如何有效的推进车间管理工作</font></b><br> 车间整体工作的推进体系<br> 车间管理项目的指标化<br> 如何将目标与指标展开为具体的实施方案<br> 如何有效的分解车间管理目标<br> 如何通过报告与例会进行管理追踪<br> <b><font color="#0000FF">◇ 如何有效的挖掘车间问题</font></b><br> 工厂常见问题<br> 如何从4M查核各个环节的问题<br> 如何寻找“三呆”,消除“三呆”<br> 如何建立适宜的标准,作为暴露问题的指针<br> <b><font color="#0000FF">◇ 车间管理的基础--如何运用5S和目视管理</font></b><br> 为什么5S是工厂管理合理化的根本<br> 5S的核心与实质<br> 精益目视管理<br> 5S信息板,KANBAN卡片<br> 创建和应用不同类型的视觉控制工具<br> 案例研讨<br> <b><font color="#0000FF">◇ 车间进度与过程控制</font></b><br> 生产作业计划的追踪实施<br> 如何控制最佳的生产节拍,保持有效产出<br> 如何提高生产管理系统的柔性<br> 如何减少运输时间,缩短交期<br> 运用U型生产线布置方式提高生产线的效率<br> 如何降低换线时间适应生产线的转换<br> 如何利用多能工随时调整生产安排<br> 如何化解瓶颈环节的制约<br> 如何通过快速换型技术实现多品种生产转换<br> 换型物料车与换型工具车的使用<br> <b><font color="#0000FF">◇ 现场质量改进</font></b><br> 如何识别质量问题<br> 如何运用品管圈活动改进质量管理<br> 推移管理与预防性问题发现<br> 质量问题的对应流程与要点<br> 质量改善活动的四阶段十步骤<br> <b><font color="#0000FF">◇ 现场成本控制</font></b><br> 盈亏平衡点――学习老板的经营观<br> 现场成本管理的主要指标<br> 降低制造成本的主要途径<br> 减少现场浪费的活动方法<br> 放大镜――从宏观到微观的工具<br> 标准成本与标准工时的测定<br> 标准成本/标准工时的差异分析<br> <b><font color="#0000FF">◇ 现场设备管理TPM</font></b><br> 设备管理的八大支柱<br> 数字化的综合效率管理<br> 设备的六大损失<br> 改善慢性损失,向零故障挑战 <br> 设备初期清扫与困难源对策<br> 自主保养的七步骤<br> <b><font color="#0000FF">◇ 车间人员管理</font></b><br> 新型的上下级关系<br> 自我培养与培养下属的意识<br> 如何有效的指导与辅导下属<br> 如何塑造持续学习与改善的现场氛围<br> 如何有效的向上级沟通与汇报<br> 同级部门之间沟通与反馈的技巧<br> 人际技巧与关系处理<br> 激励下属的技巧与方法<br> <b><font color="#0000FF">◇ 案例讨论</font></b></font> </p></td> </tr> </table> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[导 师 简 介]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p><font size="2"><font color="#FF0000"> Mr Wang,管理工程硕士、高级经济师,6SIGMA黑带,国际职业培训师协会认证职业培训师。</font>王先生长期推行工业工程、精益生产等先进运作方式,历任大型跨国公司生产负责人、工业工程经理、项目总监,对企业管理有较深入的研究。王老师主要从事生产计划与物料控制、IE技术应用、成本控制、价值工程的讲授,先后为IBM、TDK、松下、可口可乐、康师傅、汇源果汁、雪津啤酒、吉百利食品、冠捷电子、正新橡胶、美国ITT集团、广上科技、美的空调、中兴通讯、京信通信、联想电脑、艾克森-金山石化、正大集团、厦华集团、灿坤股份、NEC东金电子、太原钢铁集团、PHILIPS、三洋华强、TCL、EPSON、长安福特、泰科电子、长城计算机等知名企业提供项目辅导或专题培训。王老师授课经验丰富,风格幽默诙谐、逻辑清晰、过程互动,案例生动、深受学员喜爱</font> 。</p></td> </tr> </table> </div> <div align="center"> <table width="667" border="0" cellpadding="0" cellspacing="0" height="46"> <tr> <td width="111" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[时间/地点/报名]</font></div></td> <td width="552" class="td" height="20"> </td> </tr> <tr> <td height="26" colspan="2" class="td" width="665"> <p><font size="2"><font color="#000000"><b>时间: </b></font>8月12-13日 (周六/日) <b> </b> 地点: 上海 </font></p> </td> </tr> </table> </div> <table width="99%" height="27" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="27" class="td"> <p><font size="2"><font color="#000000"><b>费用: </b></font>1980元/人(含课程费、教材,午餐、茶水等) <font color="#000000"><b> </b>优惠:</font>四人以上参加,赠予一名名额</font> </p> </td> </tr> </table> <table width="99%" height="32" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="12" class="td"> <font size="2"><font color="#000000"><b>报名/咨询电话:</b></font> 谢小姐<font color="#000000"> </font>1 3 6 8 1 7 9 5 7 4 0 <font color="#000000"> (上海以外客户请加拨0 )</font> <br> 注: 如您不需要此邮件,请将邮箱发送至: ts...@to...(并在邮件标题注明订退)</font></td> </tr> </table> </td> </tr> </table> </body> </html> |
From: Gary R. <gr...@bi...> - 2006-07-28 13:23:01
|
See below: Robert Kern wrote: > Gary Ruben wrote: >> Should >> >>> seed(1) >> act the same as >> >>> seed(array([1])) >> in the random module? > > No. They use slightly different mechanisms to seed. The integer uses RandomKit's > seeding routine. I borrowed Python's mechanism for seeding from an array of > integers. Now that it comes up, though, it is probably a good idea to use the > same mechanism for both cases. > >> It generates a traceback with the Windows 1.0b1 binary. > > Please always copy-and-paste tracebacks when reporting bugs. It works for me > with r2881; I'll rebuild with a later version and try again. Thanks Robert, Here it is for reference. Not a very deep traceback: >>> seed(1) Traceback (most recent call last): File "<pyshell#2>", line 1, in -toplevel- seed(1) File "mtrand.pyx", line 311, in mtrand.RandomState.seed SystemError: C:\sf\python\dist23\src\Objects\longobject.c:240: bad argument to internal function |