[Numpy-discussion] Merged clean_math_config branch

2008-10-05 Thread David Cournapeau
Hi there,

Just to mention that I merged back my changes from the
clean_math_config branch into trunk. The main point of the branch is to
clean our math configuration. If this causes problems, please report it.
I  built and tested on mac os x, linux 32 bits and windows (both mingw32
and VS 2003). It breaks windows 64 bits ATM, but this will be fixed
soon. The numscons built is broken as well, but the missing features are
already backported from numpy.distutils to numscons; a new working
version of numscons is about to be released.

Some details for the record:
- more code is platform independent, with platform specifics math
functions at one location
- instead of platform-specific heuristics, every function is tested
at the configuration stage. Some distutils.command.config
functionalities were improved to make this process as fast as before for
relatively standard-compliant platforms (mac os X and linux are as fast
to build as before).
- the distutils.command.config.check_func can now detect MS
intrinsics (functions which are not visible without optimization flags).
- should also be more robust for non standard platforms (MS
compilers, mostly).

In the process, a few hundred lines of C code have been removed.
cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] cannot find numpy 1.2 for python 2.6 on window

2008-10-05 Thread Hanni Ali
Hi Alan,

I've been using numpy with 2.6 on amd64 for about 3 months no problem and
far more stable on 64-bit than the same combination with 2.5.

Daniel, just download the source and compile it yourself. You need to use VS
9.0 for best compatibility with Python and I haven't yet sorted out fast
blas I've just been using the internal numpy one.

Hanni



2008/10/5 Alan McIntyre [EMAIL PROTECTED]

 On Sat, Oct 4, 2008 at 11:14 AM, Daniel Wolff [EMAIL PROTECTED]
 wrote:
  Hello, I recently upgraded to python 2.6. I cannot seem to find the
  appropriate numpy install file. I tried to make use of the .exe built for
  python 2.5 but the installer hung. Any suggestions? Regards, Daniel

 Hi Daniel,

 Last I heard, there are still some things that need to be ironed out
 for NumPy on Python 2.6, so you will probably have to stick with 2.5
 for a while.  (Somebody please correct me if I'm wrong and there's an
 imminent release for 2.6 coming up ;)

 Cheers,
 Alan
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] asscalar(number) - why yields error, why can't return the number?!

2008-10-05 Thread dmitrey
hi all,
I wonder why numpy.asscalar(1.5) yields error, why it can't just return 
1.5? Is it intended to be ever changed?

  numpy.__version__
'1.3.0.dev5864'

D.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] cannot find numpy 1.2 for python 2.6 on window

2008-10-05 Thread David Cournapeau
On Sun, Oct 5, 2008 at 8:28 AM, Alan McIntyre [EMAIL PROTECTED] wrote:
 On Sat, Oct 4, 2008 at 11:14 AM, Daniel Wolff [EMAIL PROTECTED] wrote:
 Hello, I recently upgraded to python 2.6. I cannot seem to find the
 appropriate numpy install file. I tried to make use of the .exe built for
 python 2.5 but the installer hung. Any suggestions? Regards, Daniel

 Hi Daniel,

 Last I heard, there are still some things that need to be ironed out
 for NumPy on Python 2.6, so you will probably have to stick with 2.5
 for a while.  (Somebody please correct me if I'm wrong and there's an
 imminent release for 2.6 coming up ;)

One thing which was a relatively major stopper was nose, our test
infrastructure, was not 2.6 compatible, but that has just changed. I
will look on windows to see if 1.2 can be built with 2008 express,

cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] cannot find numpy 1.2 for python 2.6 on window

2008-10-05 Thread Hanni Ali
Hi David,

Yeah nose was an issue, thanks for letting me know about nose compatibility
being sorted that's good news as I use it a bit with my testing.

I last built 1.1.1 with express for 32bit it went fine (although I think you
do have to comment out , I was also able to compile with 2008 full for
64-bit platform, my next goal is to see if i can sort out blas etc. external
libs on 64bit.

From the Installation info thread around the 30th May I had reported the
one oddity I  had encountered with the VS compiler

 In order to get numpy to compile I
 have commented out a small part which was causing compilation to fail:

 numpy\core\src\umathmodule.c.src(64) : error C2059: syntax error : 'type'
 numpy\core\src\umathmodule.c.src(70) : error C2059: syntax error : 'type'

 This relates to this section of code:

 #ifndef HAVE_FREXPF
 static float frexpf(float x, int * i)
 {
 return (float)frexp((double)(x), i);
 }
 #endif
 #ifndef HAVE_LDEXPF
 static float ldexpf(float x, int i)
 {
 return (float)ldexp((double)(x), i);
 }
 #endif

At the time I had tried to send further output following a checkout, but
couldn't get it to post to the list, I think the message was too big or
something. I will probably be having a go with 1.2.0, when I get some time.
I'll let you know how it goes.

Cheers,

Hanni


2008/10/5 David Cournapeau [EMAIL PROTECTED]

 On Sun, Oct 5, 2008 at 8:28 AM, Alan McIntyre [EMAIL PROTECTED]
 wrote:
  On Sat, Oct 4, 2008 at 11:14 AM, Daniel Wolff [EMAIL PROTECTED]
 wrote:
  Hello, I recently upgraded to python 2.6. I cannot seem to find the
  appropriate numpy install file. I tried to make use of the .exe built
 for
  python 2.5 but the installer hung. Any suggestions? Regards, Daniel
 
  Hi Daniel,
 
  Last I heard, there are still some things that need to be ironed out
  for NumPy on Python 2.6, so you will probably have to stick with 2.5
  for a while.  (Somebody please correct me if I'm wrong and there's an
  imminent release for 2.6 coming up ;)

 One thing which was a relatively major stopper was nose, our test
 infrastructure, was not 2.6 compatible, but that has just changed. I
 will look on windows to see if 1.2 can be built with 2008 express,

 cheers,

 David
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] cannot find numpy 1.2 for python 2.6 on window

2008-10-05 Thread David Cournapeau
Hanni Ali wrote:
 Hi David,

 Yeah nose was an issue, thanks for letting me know about nose
 compatibility being sorted that's good news as I use it a bit with my
 testing.

 I last built 1.1.1 with express for 32bit it went fine (although I
 think you do have to comment out , I was also able to compile with
 2008 full for 64-bit platform, my next goal is to see if i can sort
 out blas etc. external libs on 64bit.

That's the major difficulty: no open source blas/lapack (that I am aware
of) are buildable with MS compilers, and there is no official open
source compiler (mingw) on 64 bits. Also, cygwin itself is not available
in 64 bits (only available on WOW, the windows subsystem to run 32 bits
on 64 bits OS).

Atlas, in particular, is not buildable for 64 bits windows AFAIK.


 
  #ifndef HAVE_FREXPF
  static float frexpf(float x, int * i)
  {
  return (float)frexp((double)(x), i);
  }
  #endif
  #ifndef HAVE_LDEXPF
  static float ldexpf(float x, int i)
  {
  return (float)ldexp((double)(x), i);
  }
  #endif

 At the time I had tried to send further output following a checkout,
 but couldn't get it to post to the list, I think the message was too
 big or something. I will probably be having a go with 1.2.0, when I
 get some time. I'll let you know how it goes.

I did some heavy refactoring for the above problems, and it should be
now easier to handle (in the trunk). I could build 1.2.0 with VS 2008
express on 32 bits (wo blas/lapack), and there are some test errors -
albeit relatively minor at first sight. I have not tried on 64 bits.

cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Test failures on 2.6

2008-10-05 Thread T J
Hi,

I'm getting a couple of test failures with Python 2.6, Numpy 1.2.0, Nose 0.10.4:



nose version 0.10.4
..FK..
 
.../share/home/me/usr/lib/python2.6/site-packages/numpy/lib/tests/test_io.py:68:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(c.readlines(),
./share/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1315:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(store._mask, True)
/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1322:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(store._mask, True)
/home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py:1989:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(test.mask, [0,1,0,0,0,0,0,0,0,0])
...E
==
ERROR: Tests the min/max functions with explicit outputs
--
Traceback (most recent call last):
  File /home/me/usr/lib/python2.6/site-packages/numpy/ma/tests/test_core.py,
line 653, in test_minmax_funcs_with_output
result = npfunc(xm,axis=0,out=nout)
  File /home/me/usr/lib/python2.6/site-packages/numpy/core/fromnumeric.py,
line 1525, in amin
return amin(axis, out)
  File /home/me/usr/lib/python2.6/site-packages/numpy/ma/core.py,
line 2978, in min
np.putmask(out, newmask, np.nan)
ValueError: cannot convert float NaN to integer

==
FAIL: test_umath.TestComplexFunctions.test_against_cmath
--
Traceback (most recent call last):
  File 
/home/me/usr/lib/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py,
line 182, in runTest
self.test(*self.arg)
  File 
/home/me/usr/lib/python2.6/site-packages/numpy/core/tests/test_umath.py,
line 268, in test_against_cmath
assert abs(a - b)  atol, %s %s: %s; cmath: %s%(fname,p,a,b)
AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath:
(1.57079632679+1.31695789692j)

--
Ran 1726 tests in 8.856s

FAILED (KNOWNFAIL=1, errors=1, failures=1)
nose.result.TextTestResult run=1726 errors=1 failures=1
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Merged clean_math_config branch

2008-10-05 Thread Jarrod Millman
On Sun, Oct 5, 2008 at 1:25 AM, David Cournapeau
[EMAIL PROTECTED] wrote:
Just to mention that I merged back my changes from the
 clean_math_config branch into trunk. The main point of the branch is to
 clean our math configuration. If this causes problems, please report it.
 I  built and tested on mac os x, linux 32 bits and windows (both mingw32
 and VS 2003). It breaks windows 64 bits ATM, but this will be fixed
 soon. The numscons built is broken as well, but the missing features are
 already backported from numpy.distutils to numscons; a new working
 version of numscons is about to be released.

Excellent.  Thanks for working on this.

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Merged clean_math_config branch

2008-10-05 Thread Travis E. Oliphant
David Cournapeau wrote:
 Hi there,

 Just to mention that I merged back my changes from the
 clean_math_config branch into trunk. The main point of the branch is to
 clean our math configuration. If this causes problems, please report it.
 I  built and tested on mac os x, linux 32 bits and windows (both mingw32
 and VS 2003). It breaks windows 64 bits ATM, but this will be fixed
 soon. The numscons built is broken as well, but the missing features are
 already backported from numpy.distutils to numscons; a new working
 version of numscons is about to be released.
   
This is a really good thing and a lot of work.  Thank you, David for 
doing all the heavy lifting.

-Travis

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Please backport fixes to the 1.2.x branch

2008-10-05 Thread Jarrod Millman
Hello,

I would like to get a 1.2.1 release out ASAP.  There are several
bug-fixes on the trunk that need to be backported.  If you have made a
bug-fix to the trunk that you have been waiting to backport to the
1.2.x branch, please do so now:
http://svn.scipy.org/svn/numpy/branches/1.2.x

Ideally, I would like to freeze the branch for the 1.2.1 release in
about 1 week.  Please let me know if you need more time or if there is
something in particular that you would like to see backported.

Thanks,

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion