mailRe: float128 error


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on July 13, 2009 - 14:03:
Hi,

This might have something to do with the machine having a 32 bit
processor.  For now I think we should avoid float128 at all costs.
Could you confirm that the 1.3 line now works on your machine?

Cheers,

Edward



On Mon, Jul 13, 2009 at 1:57 PM, Sébastien
Morin<sebastien.morin.1@xxxxxxxxx> wrote:
Hi,

My numpy version is 1.2.1, and the system is Gentoo Linux with the
kernel 2.6.29-r5 on an Intel Pentium M processor 1.80GHz.

Upgrading numpy to 1.3.0 does not solve the problem. Downgrading to
1.0.4-r2 does not work neither...

On my system, numpy depends on both python and lapack. The installed
version are 2.5.4-r3 and 3.1, respectively.

I found something interesting in some web post
(http://mail.scipy.org/pipermail/numpy-tickets/2007-April/000895.html):

==================================================
==================================================
 On our Windows XP Pro computer we get:

 >>> import numpy
 >>> numpy.__version__
 '1.0.4'
 >>> from numpy import array
 >>> from numpy import maximum_sctype
 >>> g = array([1], dtype='float32')
 >>> maximum_sctype(g)
 <type 'numpy.float96'>
 >>> from numpy import float128
 Traceback (most recent call last):
  File "<stdin>", line 1, in ?
 ImportError: cannot import name float128

Note that the maximum type for float32 is float96, and we cannot import
 float128.

 On our Macintosh with an Intel 2GHz Core Duo, maximum_sctype returns
 float128 for float32, and float96 cannot be imported.  This makes it
 problematic to share results between the two computers, since files
 written as float96 will not be readable on the other computers.

 We'd expect both computers to return the same type from maximum_sctype.
==================================================
==================================================

What they see on their Windows machine is exactly what I get on my Linux...

Regards,


Séb  :)




Edward d'Auvergne wrote:
Hi,

Do you know which version of numpy you are using?  I've just checked
and both versions 1.0.4 and 1.3.0 include numpy.float128.  And which
platform (OS+CPU) are you using?  This change, adding the numpy int
and float imports, was added last night.  All is fixed, but it would
be important to find out why your version of numpy doesn't have
float128.  This higher precision float may be used in the future, if
needed, and hence we should find the problem.

Cheers,

Edward


On Mon, Jul 13, 2009 at 1:35 AM, Sébastien
Morin<sebastien.morin.1@xxxxxxxxx> wrote:

Hi,

I just updated relax-1.3 from the subversion repository (r9201).

There is an error concerning the import of float128 from numpy.

===================================
./relax
Traceback (most recent call last):
 File "./relax", line 53, in <module>
   from prompt import interpreter
 File
"/home/semor/pse-4/collaborations/relax/relax-1.3/prompt/interpreter.py",
line 90, in <module>
   from value import Value
 File
"/home/semor/pse-4/collaborations/relax/relax-1.3/prompt/value.py", line
35, in <module>
   from num_types import int_list, float_list
 File
"/home/semor/pse-4/collaborations/relax/relax-1.3/prompt/num_types.py",
line 27, in <module>
   from numpy import int8, int16, int32, int64, float32, float64, float128
ImportError: cannot import name float128
===================================

Am I the only one with this problem ?

Thanks.
Regards,


Séb  :)

--
Sébastien Morin
PhD Student
S. Gagné NMR Laboratory
Université Laval & PROTEO
Québec, Canada



_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel






--
Sébastien Morin
PhD Student
S. Gagné NMR Laboratory
Université Laval & PROTEO
Québec, Canada





Related Messages


Powered by MHonArc, Updated Mon Jul 13 14:20:34 2009