[SciPy-User] Source of the error between computers (version, architecture, etc)

David Baddeley david_baddeley@yahoo.com...
Tue Sep 27 16:45:12 CDT 2011


Hi Sergi,

you're going to have to post a bit more context - from what you've posted my guess is that 'maxd' and 'irta' might be different numeric types and that numpy might have got a bit stricter with type checking and is now failing rather than performing some blind casting. Are they both arays?

cheers,
David


----- Original Message -----
From: Sergi Pons Freixes <sponsfreixes@gmail.com>
To: SciPy Users List <scipy-user@scipy.org>
Cc: 
Sent: Wednesday, 28 September 2011 3:45 AM
Subject: Re: [SciPy-User] Source of the error between computers (version, architecture, etc)

Big mistake on the previous mail. The _real_ error is:

On Tue, Sep 27, 2011 at 4:42 PM, Sergi Pons Freixes
<sponsfreixes@gmail.com> wrote:
>
> I'm getting this error:

Traceback (most recent call last):
  File "main.py", line 32, in <module>
    data = aldp.merge_max_irta(data, irta)
  File "/home/sergi/Dropbox/doctorat/alfacs/codi/aldp.py", line 378,
in merge_max_irta
    data = np.hstack((maxd, irta))
  File "/usr/lib/python2.7/site-packages/numpy/core/shape_base.py",
line 270, in hstack
    return _nx.concatenate(map(atleast_1d,tup),1)
TypeError: invalid type promotion
_______________________________________________
SciPy-User mailing list
SciPy-User@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list