[Numpy-discussion] first impressions with numpy

Sebastian Haase haase at msg.ucsf.edu
Fri Mar 31 12:30:02 CST 2006


Hi,
I'm a long time user of numarray. Now I downloaded numpy for the first 
time - and am quite excited to maybe soon being able to use things like 
weave !
Thanks for all the good work !

1)
I was following the discussion about dtype with interest, and so it was 
one of the first things to check...
 >>> repr(aa.dtype)
'dtype('<i4')'
 >>> str(aa.dtype)
''<i4''
 >>> aa.dtype.name
'int32'

Would it be possible to change str(aa.dtype) to aa.dtype.name  ??
I think it would be much more readable !
I'm mainly thinking of (some "less involved") people that just want to 
know that it's a '32bit integer' ; '<i4' is quite cryptic !


2)
This is probably more numarray related:
Why does numarray.asarray( numpy.array([1]) ) return a numpy array, not 
a numarray ??? This is even true for numarray.array( numpy.array([1]) ) !!

I'll keep exploring...
Thanks,
Sebastian Haase






More information about the Numpy-discussion mailing list