Name 'NewAxis' is not defined

Robert Kern robert.kern at gmail.com
Sun Sep 20 16:53:59 EDT 2009


mo wrote:
> I found such a script - a gas model.
> http://des.memphis.edu/lurbano/vpython/gas/Temp_KE_07.py
> Can anybody help and find a mistake. There is a message:
> Name 'NewAxis' is not defined.
> I tried Python 25 with numpy 121 and Python 26 with scipy 071.
> (Win Vista).

This file was written expecting that VPython would be using Numeric, numpy's 
predecessor, and exposing its symbols. Numeric.NewAxis == numpy.newaxis.

-- 
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




More information about the Python-list mailing list