Re: [Numpy-discussion] unique1d and asarray

2009-01-04 Thread Robert Kern
On Sun, Jan 4, 2009 at 15:44, Pierre GM pgmdevl...@gmail.com wrote:
 All,
 Currently, np.unique1d uses np.asarray to ensure the input is an
 array. The problem is that np.asarray transforms a MaskedArray into a
 regular ndarray, the missing information is lost and the result is not
 correct.
 If we used np.asanyarray instead, subclasses are recognized properly,
 the mask is recognized by argsort and the result correct.
 Is there a reason why we use np.asarray instead of np.asanyarray ?

Probably not.

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
  -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] unique1d and asarray

2009-01-04 Thread Pierre GM

On Jan 4, 2009, at 4:47 PM, Robert Kern wrote:

 On Sun, Jan 4, 2009 at 15:44, Pierre GM pgmdevl...@gmail.com wrote:

 If we used np.asanyarray instead, subclasses are recognized properly,
 the mask is recognized by argsort and the result correct.
 Is there a reason why we use np.asarray instead of np.asanyarray ?

 Probably not.

So there wouldn't be any objections to make the switch ? We can wait a  
couple of days if anybody has a pb with that...
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] cobyla, f2py

2009-01-04 Thread gh zhao
 just try  f2py according to http://www.scipy.org/F2PY_Windows.
 The following  woks in dos  cmd window.
E:\Miser3p2F\opcntrl\python E:\python25\scripts\f2py.py -c --fcompiler=gnu95 
--compiler=mingw32 -lmsvcr71 -m cobyla cobyla.pyf cobyla2.f trstlp.f 

But I directly run run_compile() of  f2py2e with 
    sys.argv=sys.argv+['-c','--fcompiler=gnu95','--compiler=mingw32', 
'-lmsvcr71','-m', 
'cobyla','E:\\Miser3p2F\opcntrl\\cobyla.pyf','E:\\Miser3p2F\opcntrl\\cobyla2.f','E:\\Miser3p2F\opcntrl\\trstlp.f']
 
, it does not work. 
I have tried several simple examples, they all work.
I do not know why.
 
ghzhao from Curtin


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Invitation to connect on LinkedIn

2009-01-04 Thread Yunfeng Zhang
LinkedIn




   
Discussion,

I'd like to add you to my professional network on LinkedIn.

- Yunfeng

Learn more:
https://www.linkedin.com/e/isd/443568042/FmoYJeHZ/

--

What is LinkedIn and why should you join?
http://learn.linkedin.com/what-is-linkedin/


 
--
(c) 2008, LinkedIn Corporation

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion