[Numpy-discussion] numarray zeros - keyword argument 'typecode'

Todd Miller jmiller at stsci.edu
Wed Dec 3 03:44:05 CST 2003


On Tue, 2003-12-02 at 19:44, Sebastian Haase wrote:
> Hi,
> I'm just trying to debug some PyOpenGl stuff . It seems that this is only
> available with Numeric (no numarray !?)
> 
> Drawing a 60000 vertex array takes 6 sec ( should be much less than 0.5 sec
> !! )
> I found this is because all my other code is using numarray and it is this
> conversion that takes so long.
> Switching to Numeric (and back to numarray) got this error message:
> [[[ Num  is here numarray !! ]]
> self.m_histPlotArray = Num.zeros((n,2), typecode=Num.Float32)
> TypeError: zeros() got an unexpected keyword argument 'typecode'

numarray is still weak in a few places for keyword names.  Try 'type'
instead. 

Todd
> 
> I thought numarray  suppossed to be backwards compatible ... so I just
> report this as a bug.
> 
> Regards,
> Sebastian
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- 
Todd Miller <jmiller at stsci.edu>





More information about the Numpy-discussion mailing list