Re: [Numpy-discussion] Tickets for closing

2009-02-28 Thread Pauli Virtanen
ome cases I > believe (when printing is not done through our work in numpyos.c). I > will still check that the test works, at least. Thanks! -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.sc

[Numpy-discussion] RFR: #1008 Loss of precision in (complex) arcsinh & arctanh

2009-02-28 Thread Pauli Virtanen
http://scipy.org/scipy/numpy/ticket/1008 http://codereview.appspot.com/22054 -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] RFR: #1008 Loss of precision in (complex) arcsinh & arctanh

2009-03-02 Thread Pauli Virtanen
pparently doesn't track dependencies to the *.inc.src files. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] [Fwd: Issue 113 in sphinx: nodes.py KeyError "entries" in numpy doc build]

2009-03-03 Thread Pauli Virtanen
mpy side. I know zip about sphinx extensions, so I don't expect > to be able to suggest a fix myself. > > (I am assuming that the doc subdirectory in svn *should* be > buildable--am I correct?) Yes. But not necessarily with Sphinx 0.6.dev. -- Pauli Virtanen ___

Re: [Numpy-discussion] Apropos ticked #913

2009-03-04 Thread Pauli Virtanen
t the nonpropagating versions of `amax` and `amin` called `nanmax` and `nanmin`? But these are functions, not array methods. What does the `f` in the beginning of `fmax` and `fmin` stand for? -- Pauli Virtanen ___ Numpy-discussion mailing list Num

Re: [Numpy-discussion] N-D array interface page is out of date

2009-03-08 Thread Pauli Virtanen
is O. and Dag, > especially), I'd appreciate it if you could read over the pages to > ensure everything is actually correct. I wonder if it would make sense to redirect the page here: http://docs.scipy.org/doc/numpy/reference/arrays.interface.html so that it would be easier

[Numpy-discussion] Buildbot issues

2009-03-09 Thread Pauli Virtanen
g' SVN url that doesn't work any more in its config. - The FreeBSD_64 slave (+ maybe others) has a wrong Numpy test stanza in its Makefile, so tests won't run. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@s

Re: [Numpy-discussion] Numpy documentation: status and distribution for 1.3.0

2009-03-10 Thread Pauli Virtanen
x/issue/81/ but I think Ctrl+C is not a requirement for triggering it. Did you get this error from a clean build? > There are also some errors on mac os x about too many opened files > (which can be alleviated by running the make html again, but obviously, > that's not great). I don&#

Re: [Numpy-discussion] Numpy documentation: status and distribution for 1.3.0

2009-03-10 Thread Pauli Virtanen
Tue, 10 Mar 2009 18:22:12 +, Pauli Virtanen wrote: > Tue, 10 Mar 2009 15:27:32 +0900, David Cournapeau wrote: >> For the upcoming 1.3.0 release, I would like to distribute the (built) >> documentation in some way. But first, I need to be able to build it :) > > Yep, bu

Re: [Numpy-discussion] What is the logical value of nan?

2009-03-10 Thread Pauli Virtanen
we should follow Python here, otherwise unnecessary confusion may arise. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy documentation: status and distribution for 1.3.0

2009-03-11 Thread Pauli Virtanen
Wed, 11 Mar 2009 16:20:47 +0900, David Cournapeau wrote: > On Wed, Mar 11, 2009 at 3:22 AM, Pauli Virtanen wrote: [clip] >> Sphinx 0.5.1 worksforme, and on two different Linux machines (and >> Python versions), so I doubt it's somehow specific to my setup. > > Yes, it

Re: [Numpy-discussion] Enhancements for NumPy's FFTs

2009-03-15 Thread Pauli Virtanen
d, specify the Codereview site issue number to the upload: python upload.py -i 12345 so that the new version of the patch is marked as an improved version of the old one. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scip

Re: [Numpy-discussion] Enhancements for NumPy's FFTs

2009-03-15 Thread Pauli Virtanen
ff suffix. Maybe this can be fixed. - Inline comments in patches would be nice, as in codereview. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Superfluous array transpose (cf. ticket #1054)

2009-03-15 Thread Pauli Virtanen
TA : True > WRITEABLE : True > ALIGNED : True > UPDATEIFCOPY : False >>>> (a+1).flags > C_CONTIGUOUS : True > F_CONTIGUOUS : False > OWNDATA : True > WRITEABLE : True > ALIGNED : True > UPDATEIFCOPY : False New numpy arrays are by default in C-orde

Re: [Numpy-discussion] Buildbot not building?

2009-03-17 Thread Pauli Virtanen
Tue, 17 Mar 2009 15:25:37 +0200, Stéfan van der Walt wrote: > Pauli, > > 2009/2/14 Pauli Virtanen : >> It seems that the buildbot.scipy.org is not picking up the changes in >> Numpy trunk. >> >> I'd guess this could be some issue with SVNPoller. At leas

Re: [Numpy-discussion] Slicing/selection in multiple dimensions simultaneously

2009-03-17 Thread Pauli Virtanen
ands... I wonder if these would be worth the trouble. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Buildbot not building?

2009-03-17 Thread Pauli Virtanen
Tue, 17 Mar 2009 15:25:37 +0200, Stéfan van der Walt wrote: > 2009/2/14 Pauli Virtanen : >> It seems that the buildbot.scipy.org is not picking up the changes in >> Numpy trunk. >> >> I'd guess this could be some issue with SVNPoller. At least it doesn't

Re: [Numpy-discussion] [Announce] Numpy 1.3.0b1

2009-03-19 Thread Pauli Virtanen
p info = np.finfo(np.longcomplex) print "eps:", info.eps, info.eps.dtype print "tiny:", info.tiny, info.tiny.dtype print "log10:", np.log10(info.tiny), np.log10(info.tiny/info.eps) Thanks! -- Pauli Virtanen ___ Numpy-disc

Re: [Numpy-discussion] Buildbot not building?

2009-03-19 Thread Pauli Virtanen
Wed, 18 Mar 2009 09:26:29 +0200, Stéfan van der Walt wrote: > 2009/3/17 Pauli Virtanen : >> Ok, it seems like this the issue with no updates is now sorted out: >> >>        http://buildbot.scipy.org/waterfall?show_events=false >> >> and the buildbot gets the chang

Re: [Numpy-discussion] numpy.testing in the docs?

2009-03-21 Thread Pauli Virtanen
t; > Where in the docs is it supposed to go? New file routines.testing.rst would perhaps be the best place. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Doc update for 1.3.0?

2009-03-21 Thread Pauli Virtanen
pass through them. I invite other people who have the reviewer permissions to check my judgment. Comments or suggestions? -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Doc update for 1.3.0?

2009-03-21 Thread Pauli Virtanen
Sun, 22 Mar 2009 03:14:50 +0200, Stéfan van der Walt wrote: > Hi Pauli > > 2009/3/22 Pauli Virtanen : >> Previously, I did the cherry-picking just by reading through the full >> patch, but now I added a feature to the doc wiki that allows to >> parallelize t

Re: [Numpy-discussion] Doc update for 1.3.0?

2009-03-22 Thread Pauli Virtanen
Sun, 22 Mar 2009 14:37:28 +0200, Stéfan van der Walt wrote: > 2009/3/22 Pauli Virtanen : >>> There is a small problem, in that when I click on any function is >>> shows that it is set to "No", with the option to change to "Yes" -- >>> even when t

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
is to fix the precision > test to use a hardwired range of values, I don't think testing the > extreme small values is necessary to check the power series expansion. > But I have been leaving that fixup to Pauli. I'll do just

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
-2) z**101 Do you get a crash at some point? -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
Mon, 23 Mar 2009 19:55:17 +, Pauli Virtanen wrote: > Mon, 23 Mar 2009 13:22:29 -0600, Charles R Harris wrote: [clip] >> PPC stores long doubles as two doubles. I don't recall exactly how the >> two are used, but the result is that the numbers aren't in the form

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
gn and multiple longdoubles and take the square root > but not use the power '**'. > >>> y=np.longdouble(2) > >>> y > 2.0 > >>> y**1 > 2.0 > >>> y**2 > crash Ok, this looks a bit tricky, I have no id

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
way to do it, it can wait. Done, r6717. Sorry about the long time it took to get this fixed... -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

2009-03-23 Thread Pauli Virtanen
om there it directly seems to go to _basic_longdouble_pow, where it calls npy_pow, which calls system's powl. (Like so on my system, verified with gdb.) I don't see branches testing for exponent 1, so this probably means that the crash occurs inside powl? -- Pauli Virtanen __

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Pauli Virtanen
th.mpf('3e-9') >>> print (mpmath.atanh(p) - p)*1e27 9.0001681879956480095820042512435586643130912 I'll relax the test tolerance to allow for this... -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Pauli Virtanen
n-working patterns. > = > version_pattern = r'Pathscale(TM) Compiler Suite: Version (?P[^\s]*)' > = Possibly like so: version_pattern = r'PathScale\(TM\) Compiler Suite: Version (?P[^\s]*)' You need the escapes to avoid the first

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Pauli Virtanen
s probably best answered by the documentation: http://docs.python.org/library/re.html In short, the (?P<...>) construct defines a named group. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy

Re: [Numpy-discussion] Doc update for 1.3.0?

2009-03-24 Thread Pauli Virtanen
port it and some other doc fixes to 1.3.x tomorrow (if no objections): git://github.com/pv/numpy-work.git work-1.3.x -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Creating array containing empty lists

2009-03-25 Thread Pauli Virtanen
torizing the list constructor: >>> a = np.empty((5,), dtype=np.object_) >>> a.fill([]) >>> a = np.frompyfunc(list,1,1)(a) >>> a array([[], [], [], [], []], dtype=object) >>> a[0].append('foo') >>> a array([['foo'], [], [],

Re: [Numpy-discussion] Using loadtxt() twice on same file freezes python

2009-03-26 Thread Pauli Virtanen
23, I get an exception: {{{ Traceback (most recent call last): File "", line 1, in File ".../numpy-1.4.0.dev-py2.5-linux-x86_64.egg/numpy/lib/io.py", line 436, in loadtxt raise IOError('End-of-file reached before encountering

Re: [Numpy-discussion] Using loadtxt() twice on same file freezes python

2009-03-26 Thread Pauli Virtanen
use a real file, that is). Could you test this with Numpy SVN version (or the 1.3 beta). It's very likely the bug is this one: http://projects.scipy.org/numpy/ticket/908 and it has already been fixed. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Normalization of ifft

2009-03-27 Thread Pauli Virtanen
of ifft in the "Guide to NumPy" book is probably incorrect: >>> np.fft.ifft([1,0,0,0]) array([ 0.25+0.j, 0.25+0.j, 0.25+0.j, 0.25+0.j]) whereas that of the online reference guide is correct. (To avoid confusion between the different docs, i

Re: [Numpy-discussion] Behavior of numpy.random.exponential

2009-03-27 Thread Pauli Virtanen
Fri, 27 Mar 2009 09:20:09 -0400, josef.pktd wrote: [clip: numpy.random.exponential docstring] > I changed this a while ago in the documentation editor, but it hasn't > been merged yet to the source docstring It is merged, but I forgot to regenerate the mtrand.c file. -- Pau

Re: [Numpy-discussion] A few more questions about build doc

2009-03-27 Thread Pauli Virtanen
t there ought to be no API changes in the .ZZ, so we'd like docs for newer versions (possibly containing updates etc.) be labelled as compatible with all XX.YY. versions. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@s

Re: [Numpy-discussion] np.savez not multi-processing safe, alternatives?

2009-03-30 Thread Pauli Virtanen
py/browser/trunk/numpy/lib/io.py#L243 and use a copy of it in your code temporarily. The function is fairly small. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy 1.3.0 rc1 fails find_duplicates on Solaris

2009-03-30 Thread Pauli Virtanen
k you should open a ticket for this. The data seems to be in a different order in the index array and in the data array returned by `find_duplicates`. It is intended that find_duplicates guarantees that the returned indices correspond to the returned values? Another question: the 'recfunc

Re: [Numpy-discussion] Numpy 1.3.0 rc1 fails find_duplicates on Solaris

2009-03-30 Thread Pauli Virtanen
t. I think the test is now fixed in trunk: http://projects.scipy.org/numpy/changeset/6827 -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] trouble building docs with sphinx-0.6.1

2009-04-01 Thread Pauli Virtanen
Sphinx >= 0.6. It should now be fixed in Numpy trunk. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] trouble building docs with sphinx-0.6.1

2009-04-08 Thread Pauli Virtanen
Wed, 08 Apr 2009 09:59:50 +0200, Gael Varoquaux kirjoitti: > On Wed, Apr 01, 2009 at 08:40:15PM +0000, Pauli Virtanen wrote: >> It was an incompatibility of Numpy's autosummary extension and Sphinx >> >= 0.6. It should now be fixed in Numpy trunk. > > autosum

Re: [Numpy-discussion] DVCS at PyCon

2009-04-12 Thread Pauli Virtanen
ll together, as rebasing tends to move also the "trunk" bookmark around. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] documentation suggestion

2009-04-13 Thread Pauli Virtanen
>>> z[0] = 'x' >>> x 'xbcde' >>> y 'xbcde' >>> hash(x) -1332677140 >>> hash("abcde") -1332677140 Hashing breaks, and the assumed immutability of strings causes nonlocal effects

[Numpy-discussion] Ill-defined in-place operations (#1085)

2009-04-15 Thread Pauli Virtanen
rst time this has been discussed on this ML, but the last discussion did not (IIRC) lead to any conclusions. (But I think it was established that detecting when views really overlap is a problem with no cheap solution. So walking up ->base pointers or comparing ->data pointers seemed nea

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Pauli Virtanen
t;> used to build the numpy binaries). >> >> cheers, >> >> David > > numpy compiles fine with mingw, but I never managed to build an egg. I'm > not able to get the --compiler=mingw32 to be recognized. I think it might work if you separate the compiling and bdist_egg steps: setupegg.py build --compiler=mingw32 bdist_egg Does this help? -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Ill-defined in-place operations (#1085)

2009-04-15 Thread Pauli Virtanen
Wed, 15 Apr 2009 16:36:09 -0400, josef.pktd wrote: [clip] > Is there a list of gotchas for working with views that might produce > unexpected results? I don't think there is. Also, the reference manual would probably need a separate section about views. -- Pau

Re: [Numpy-discussion] Ill-defined in-place operations (#1085)

2009-04-15 Thread Pauli Virtanen
lesome cases and raise a warning. (The user can silence these, if the behavior is really relied on.) I don't know what is the performance impact of Python warnings, though. The alternative is to have really good documentation on views... -- Pauli Virtanen ___

Re: [Numpy-discussion] Question for Pauli or Stefan about doc editor.

2009-04-15 Thread Pauli Virtanen
Wed, 15 Apr 2009 15:27:21 -0600, Charles R Harris wrote: > I'm going to move the docstrings from mtrand.pyx to add_newdocs.py. Will > this require any fixes to the doc editor so that the docs don't get > readded to mtrand? Go ahead, nothing should break.

Re: [Numpy-discussion] Numpy Trac site redirecting in a loop?

2009-04-15 Thread Pauli Virtanen
to get me to the site? I don't see this. Can you try emptying your browser's cache? -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Buildbot unavailable

2009-04-18 Thread Pauli Virtanen
Hi, buildbot.scipy.org says: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. -- Pauli Virtanen ___ Numpy

Re: [Numpy-discussion] svn test failures: linalg with complex

2009-04-18 Thread Pauli Virtanen
most equal (mismatch 100.0%) x: array([ 2.+1.j, 1.+2.j], dtype=complex64) y: array([ 7.22953510+1.74995685j, 10.88255692+1.7498703j ], dtype=complex64) -- Ran 2034 tests in 41.154s FAILED (KNOWNFAIL=1, failures=2) -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] svn test failures: linalg with complex

2009-04-18 Thread Pauli Virtanen
Sat, 18 Apr 2009 13:19:39 -1000, Eric Firing wrote: [clip] > This is a real pain. What is the simplest work-around? apt-get install libatlas3gf-base export LD_LIBRARY_PATH=/usr/lib/atlas Or, just uninstall libatlas3gf-sse2 in favor of the *-base version. -- Pauli Virta

Re: [Numpy-discussion] buggy fortran array reshape ?

2009-04-22 Thread Pauli Virtanen
xplain these issues in depth. If you want to ensure no-copy, assign to shape: a.shape = (6,) > Another remark against reshape: > OWNDATA flag is False, even if b is a copy ! Apparently, reshape first copies to a contiguous array and then reshapes. This could be simplified.

Re: [Numpy-discussion] buggy fortran array reshape ?

2009-04-22 Thread Pauli Virtanen
be confusing at times. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] buggy fortran array reshape ?

2009-04-22 Thread Pauli Virtanen
Wed, 22 Apr 2009 15:12:20 -0400, josef.pktd wrote: > On Wed, Apr 22, 2009 at 2:37 PM, Pauli Virtanen wrote: [clip] >> If you want to ensure no-copy, assign to shape: >> >> a.shape = (6,) [clip] > Is the difference between assigning to the attribute and using the

Re: [Numpy-discussion] Porting strategy for py3k

2009-04-23 Thread Pauli Virtanen
This would limit our responsibility to just ensuring that our Nose extensions work with all relevant Nose versions. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy 1.3.0 test() failures on ubuntu 9.04

2009-04-23 Thread Pauli Virtanen
imized Atlas libraries shipped with Ubuntu 9.04 are broken: https://bugs.launchpad.net/bugs/363510 -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Keeping track of backports in Trac

2009-04-24 Thread Pauli Virtanen
isting the branches, would help this. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
cision. The only thing that does not work is integration, since it seems to force-cast to float: >>> np.polyint(p) poly1d([ 0., 1., 3., 0.]) This is a bug in itself, since poly1d could well have complex coefficients. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
will work fine with minor changes, so I see no reason not to make sure we're consistent with duck typing. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Idea: fractional polynomial class

2009-04-24 Thread Pauli Virtanen
Fri, 24 Apr 2009 19:04:50 +, Pauli Virtanen wrote: > Well, Numpy's poly1d will work fine with minor changes, so I see no > reason not to make sure we're consistent with duck typing. polyint fixed in r6883, there doesn't seem anything else to fix: >>> import

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Pauli Virtanen
0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], dtype=object) The trick is to create an universal function out of the object constructor, and feed it initializer data. Works for any classes. I'm undecided whether it'd be a good idea to add a specialized routine fo

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Pauli Virtanen
es > that could then be merged. I don't think broken trunk has often been a significant problem in Numpy in the past. Anyway, feature branches are good, and we have the buildbot.scipy.org, so there's no reason not to check it after committin

Re: [Numpy-discussion] Installation NumPy v.1.2.1 on Linux

2009-05-08 Thread Pauli Virtanen
Fri, 08 May 2009 11:45:51 +0400, Ilya A. Kozyreff kirjoitti: > $ python setup.py install --prefix=/nethome/ia/usr/ > > $ python -c 'import numpy; numpy.test()' [clip] > ImportError: No module named numpy [clip] > What I do wrong? http://docs.python.org/install/index.html#modifying-python-s-search

Re: [Numpy-discussion] Numpy Trac site redirecting in a loop?

2009-05-08 Thread Pauli Virtanen
http://trac-hacks.org/ticket/3233 I applied the patch from the ticket; I think password resets should work now, so you can try using your old accounts again. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.

Re: [Numpy-discussion] FAIL: Test bug in reduceat with structured arrays

2009-05-11 Thread Pauli Virtanen
eat with structured arrays copied for speed. > -- [clip] Buildbot can't. I'd suggest removing your build/ directory and rebuilding, to see if it's caused by some file not rebuilding properly. Otherwise,

Re: [Numpy-discussion] FAIL: Test bug in reduceat with structured arrays

2009-05-11 Thread Pauli Virtanen
Mon, 11 May 2009 16:22:37 +0200, Nils Wagner kirjoitti: > On Mon, 11 May 2009 14:05:13 + (UTC) > Pauli Virtanen wrote: >> Mon, 11 May 2009 14:06:07 +0200, Nils Wagner kirjoitti: >>> Can someone reproduce the following failure ? I am using >>>>>&g

[Numpy-discussion] Indexing with callables (was: Yorick-like functionality)

2009-05-14 Thread Pauli Virtanen
Wed, 13 May 2009 13:18:45 -0700, David J Strozzi kirjoitti: [clip] > Many of you probably know of the interpreter yorick by Dave Munro. As a > Livermoron, I use it all the time. There are some built-in functions > there, analogous to but above and beyond numpy's sum() and diff(), which > are quite

Re: [Numpy-discussion] Question about slicing

2009-05-16 Thread Pauli Virtanen
re doing. Preparing a self-contained code example could help here, at least this would make pinpointing where the error is more easy. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Indexing with callables (was: Yorick-like functionality)

2009-05-16 Thread Pauli Virtanen
manual/yorick_46.php#SEC46 http://yorick.sourceforge.net/manual/yorick_47.php#SEC47 I must say that I don't see many functions missing in Numpy... David (Strozzi): are these the functions you meant? Are there more? -- Pauli Virtanen ___ Nump

[Numpy-discussion] Obsolete Endo-generated docs

2009-05-16 Thread Pauli Virtanen
Hi, Sat, 16 May 2009 16:01:00 +0300, Quilby wrote: [clip] > http://www.scipy.org/doc/numpy_api_docs/numpy.linalg.linalg.html#lstsq [clip] Could we take these old Endo-generated docs down, and make the URL redirect to docs.scipy.org? I believe they are more harmful than helpful... -- Pa

Re: [Numpy-discussion] Obsolete Endo-generated docs

2009-05-16 Thread Pauli Virtanen
Sat, 16 May 2009 14:02:34 +, Pauli Virtanen wrote: > Hi, > > Sat, 16 May 2009 16:01:00 +0300, Quilby wrote: [clip] >> http://www.scipy.org/doc/numpy_api_docs/numpy.linalg.linalg.html#lstsq > [clip] > > Could we take these old Endo-generated docs down, and ma

Re: [Numpy-discussion] Question about slicing

2009-05-16 Thread Pauli Virtanen
ms to work differently from asarray. This may actually be a bug in matplotlib; perhaps you should ask the people on the matplotlib lists if this is really the intended behavior. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.

Re: [Numpy-discussion] numpy slices limited to 32 bit values?

2009-05-17 Thread Pauli Virtanen
that this doesn't get forgotten. Thanks, -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Indexing with callables (was: Yorick-like functionality)

2009-05-18 Thread Pauli Virtanen
sdos/programming/news/yorick.10 .. [2] http://www.scilab.org/platform/index_platform.php?page=history .. [3] http://en.wikipedia.org/wiki/GNU_Octave#History -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.s

Re: [Numpy-discussion] wiki page correction

2009-05-20 Thread Pauli Virtanen
x[1,:].copy() > > If not, please advise. Yes, it should be x[1,:].copy(). Please feel free to correct it. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] how to use ldexp?

2009-05-21 Thread Pauli Virtanen
Thu, 21 May 2009 01:45:54 -0700, dmitrey wrote: > I have updated numpy to latest '1.4.0.dev7008', but the bug still > remains. > I use KUBUNTU 9.04, compilers - gcc (using build-essential), gfortran. Worksforme on Ubuntu 9.04, on python2.6 and python2.5. Should be the same p

Re: [Numpy-discussion] how to use ldexp?

2009-05-21 Thread Pauli Virtanen
Thu, 21 May 2009 09:26:18 +, Pauli Virtanen wrote: > Thu, 21 May 2009 01:45:54 -0700, dmitrey wrote: > >> I have updated numpy to latest '1.4.0.dev7008', but the bug still >> remains. >> I use KUBUNTU 9.04, compilers - gcc (using build-essential), gfortran.

Re: [Numpy-discussion] memoryerror with numpy.fromfile

2009-05-21 Thread Pauli Virtanen
memory fragmentation. Also, you should check that you don't have an ulimit set for virtual/RSS memory. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] memoryerror with numpy.fromfile

2009-05-21 Thread Pauli Virtanen
ding empty files: http://projects.scipy.org/numpy/ticket/1115 which is maybe related. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] wiki page correction

2009-05-21 Thread Pauli Virtanen
Thu, 21 May 2009 10:54:21 -0700, Grant Kelly wrote: > It's an immutable page. Can someone who already has access make the > edit? Umm, are you sure? I don't see any ACL's on the page. (Though you need to register an account on the wiki before editing.

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-22 Thread Pauli Virtanen
OTOH, implements the pickle protocol, and will unwrap non- array objects so that all their attributes etc. are exposed in the hdf5 file and can be read by non-Python applications. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@s

Re: [Numpy-discussion] Ticket #1113, change title?

2009-05-23 Thread Pauli Virtanen
ar 0 when I checked it. What do you mean by "nowhere near"? What does the following output for you: >>> np.arctanh(np.array([1e-5 + 1e-5j], np.complex64)) array([ 9.9975e-06 +9.9975e-06j], dtype=complex64) -- Pauli Virtanen

Re: [Numpy-discussion] documenting index_tricks

2009-05-24 Thread Pauli Virtanen
t maybe RClass should be a private > class. Also a name like RowConcatenator (it is a subclass of > AxisConcatenator) would make more sense. I'm not sure this change is > worth the trouble though. I think the RClass is a private imple

Re: [Numpy-discussion] documenting index_tricks

2009-05-24 Thread Pauli Virtanen
Sun, 24 May 2009 19:21:59 +, Pauli Virtanen wrote: > Sun, 24 May 2009 14:29:30 -0400, Ralf Gommers wrote: > >> Hi all, >> >> I'm documenting the index_tricks module and am unsure how to handle r_ >> and related objects. r_ is an instance of RClass, th

Re: [Numpy-discussion] Generalised Ufunc list

2009-05-24 Thread Pauli Virtanen
h the C-side stuff is in place. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] parsing text strings/files in fromfile, fromstring

2009-05-24 Thread Pauli Virtanen
) -> [1,2] fromstring("1,2,x,4", sep=",", count=5) -> ValueError fromstring("1,2,x,4", sep=",", count=5, strict=False) -> [1,2] Fromfile would always behave the same way as `fromstring(file.read())`. In the above, " " in sep would equal the regexp \w+, and binary data implied by sep='' would be interpreted in the same way it would if first converted to comma-separated text. Can you think of any other alternatives? (Let's forget the names of the new keyword arguments for the present, and assume they have perfectly fitting names.) I'd vote for (e) if the slate was clean, but since it's not: +1 for (a) or (b) -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Making NpzFiles behave more like dictionaries.

2009-06-02 Thread Pauli Virtanen
e dictionary interface for the NpzFile class. Any comments as to > whether this is a good/bad idea, or about the specific implementation? +0 I don't see any drawbacks, and the implementation looks good. -- Pauli Virtanen ___ Numpy-discussion

Re: [Numpy-discussion] [RFR] NpzFile tweaks (Re: Making NpzFiles behave more like dictionaries.)

2009-06-03 Thread Pauli Virtanen
Wed, 03 Jun 2009 16:05:51 -0400, David Warde-Farley wrote: > On 2-Jun-09, at 3:06 PM, Pauli Virtanen wrote: > >> +0 >> >> I don't see any drawbacks, and the implementation looks good. > > Thanks Pauli. I realized I was missing values() and itervalues() (thou

Re: [Numpy-discussion] Scipy 0.7.1rc1 released

2009-06-04 Thread Pauli Virtanen
as Python warnings instead of printing them to stderr. *** I added this to 0.7.1-notes.rst. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Multiplying Python float to numpy.array of objects works but fails with a numpy.float64, numpy Bug?

2009-06-09 Thread Pauli Virtanen
[clip] > > Should I open a ticket for that? Please do, the current behavior doesn't seem correct. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Question about memmap

2009-06-10 Thread Pauli Virtanen
onsiderably more work than just representing the binary data. Also, I doubt that this would be very useful: representing large amounts of data as text is not efficient. I also think few people have interest in this feature. -- Pauli Virtanen ___ Nump

Re: [Numpy-discussion] More on doc-ing new functions

2009-06-15 Thread Pauli Virtanen
rst file, eg., http://docs.scipy.org/numpy/docs/numpy-docs/reference/routines.set.rst/ in order to be included in the final documentation. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Ready for review: PyArrayNeighIterObject, an iterator to iterate over a neighborhood in arbitrary arrays

2009-06-15 Thread Pauli Virtanen
ly go here: http://docs.scipy.org/numpy/docs/numpy-docs/reference/c-api.array.rst/#array-iterators Probably as a new subsection. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] More on doc-ing new functions

2009-06-16 Thread Pauli Virtanen
ize.py in Numpy's SVN that should report the status, but it's currently broken. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ticket #1096

2009-06-16 Thread Pauli Virtanen
const @type@ tmp = x - y; > > is -inf or not. And if it is, just to return -inf. That's not the correct fix. Anyway, fixed in r7059. -- Pauli Virtanen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Test bug in reduceat with structured arrays copied for speed.

2009-06-19 Thread Pauli Virtanen
On 2009-06-19, Nils Wagner wrote: > Is this a known failure ? > I am using 1.4.0.dev7069 Check the tickets: http://projects.scipy.org/numpy/ticket/1108 Cause is not known yet, but that bug most likely has been around for a long time. -- Pauli Vi

<    3   4   5   6   7   8   9   10   11   >