Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Name 'NewAxis' is not defined

19 views
Skip to first unread message

mo

unread,
Sep 20, 2009, 4:41:15 PM9/20/09
to
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).
--
mo (not proffessional programmer ;)

Robert Kern

unread,
Sep 20, 2009, 4:53:59 PM9/20/09
to pytho...@python.org
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

MRAB

unread,
Sep 20, 2009, 5:03:14 PM9/20/09
to pytho...@python.org
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).

I can't see a definition for NewAxis. Is it defined in one of the
module's you import, 'visual' or 'visual.graph'?

0 new messages