Re: [Numpy-discussion] f2py with int8

2012-04-17 Thread John Mitchell
John On Tue, Apr 17, 2012 at 10:12 AM, Paul Anton Letnes < paul.anton.let...@gmail.com> wrote: > Ah, come to think of it, I think that f2py only supports literal kind > values. Maybe that's your problem. > > Paul > > On 17. apr. 2012, at 07:58, Sameer Grover wro

Re: [Numpy-discussion] f2py with int8

2012-04-17 Thread John Mitchell
Thanks Sameer. I confirmed on my side as well. I will try to understand the why part now. Much appreciated. On Mon, Apr 16, 2012 at 11:58 PM, Sameer Grover wrote: > On Tuesday 17 April 2012 11:02 AM, John Mitchell wrote: > > Hi, > > I am using f2py to pass a numpy array of typ

[Numpy-discussion] f2py with int8

2012-04-16 Thread John Mitchell
Hi, I am using f2py to pass a numpy array of type numpy.int8 to fortran. It seems like I am misunderstanding something because I just can't make it work. Here is what I am doing. PYTHON b=numpy.array(numpy.zeros(shape=(10,),dtype=numpy.int8),order='F') b[0]=1 b[2]=1 b[3]=1 b array([1, 0, 1, 1,

Re: [Numpy-discussion] test failure

2010-10-07 Thread John Mitchell
t_printoptions() {'infstr': 'inf', 'threshold': 1000, 'suppress': False, 'linewidth': 75, 'edgeitems': 3, 'precision': 8, 'nanstr': 'nan'} On Thu, Oct 7, 2010 at 3:35 AM, Ralf Gommers wrote: > > >

[Numpy-discussion] test failure

2010-10-01 Thread John Mitchell
After spending a lot of time building 'numpy' (1.5.0) and 'scipy' (0.8.0) I ran the following tests -- per what I read somewhere: numpy.test() Out of several thousand small tests I found this one error -- perhaps its not really an error? This doesn't look serious but it can be bothersome when o