[SciPy-user] Problem with numeric array bounds

Ramon Crehuet rcsqtc@iiqab.csic...
Tue Oct 28 12:15:19 CDT 2008


Hi,
Unfortunately I have to stick to Numeric 23.8 because the application is
not fully compatible with Numeric 24. In fact, we have another machine
where Numeric 23.8 is working flowlessly so it must be a compilation
problem. However we have updated gcc (to 4.1.3) but the problem remains.
Any suggestion?
Cheers,
Ramon


> Message: 2
> Date: Mon, 27 Oct 2008 12:38:18 -0500
> From: "Robert Kern" <robert.kern@gmail.com>
> Subject: Re: [SciPy-user] Problem with numeric array bounds
> To: "SciPy Users List" <scipy-user@scipy.org>
> Message-ID:
> 	<3d375d730810271038o6a96d774ibd7d369ea7e26915@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> On Mon, Oct 27, 2008 at 12:11, Ramon Crehuet <rcsqtc@iiqab.csic.es> wrote:
>> Dear all,
>> I know Numeric is no longer supported, but we are using an application
>> (nMoldyn) that uses it, and we are encoutering an unusual problem.
>> I am using the Numeric 23.8.2 version to create arrays, but there is
>> something wrong when it comes to create a subarray:
>> ----------------------------------------------------------------------
>> Python 2.5 (r25:51908, Jan 10 2008, 18:01:52)
>> [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import Numeric
>>>>> a=Numeric.array([7,5,1])
>>>>> a
>> array([7, 5, 1])
>>>>> a[0:]
>> array([7, 5])
>> ----------------------------------------------------------------------
>>
>> The subarray ends at the penultimate element when using ':' On
>> the other hand, there is no problem when defining sublists. Can be
>> something wrong with python and/or Numeric installation?
> 
> Try Numeric 24.2. On my machine, it gives the correct results:
> 
>>>> import Numeric
>>>> a = Numeric.array([7,5,1])
>>>> a[0:]
> array([7, 5, 1])
> 



More information about the SciPy-user mailing list