That's due to the change from Numeric, which is no longer supported, to
numpy, which is.
The VPython example program gas.py upon which this was probably based
was rewritten to work either with Numeric or with numpy. Similarly, the
example program stars.py (upon which nebula_20p.py might possibly be
based) has also been revised in this way.
Bruce Sherwood
roberto wrote:
> hello,
> i downloaded the following demo files: gas-KE_07.py from
> http://lurbano-5.memphis.edu/GeoMod/index.php/Main_Page
>
> and encountered this error
> gas-KE_07.py", line 213, in <module>
> r = pos-pos[:,NewAxis] # all pairs of atom-to-atom vectors
> NameError: name 'NewAxis' is not defined
>
> also, the atoms do not move at all nor the slider is working
>
> the very same problem is in the code: nebula_20p.py
>
> if anyone has solved the issue, let me know
> thank you in advance
>
>
|