|
From: Stef M. <s.m...@ru...> - 2009-01-08 22:32:13
|
thanks Bruce,
Bruce Sherwood wrote:
> See the example programs stars.py or gas.py in the Visual 5 version,
> which have been rewritten to work either with Numeric (Visual 3) or
> numpy (Visual 5). I don't know why numpy made some seemingly trivial
> changes such as NewAxis -> newaxis. Annoying.
I didn't notice the demo stars (as I've under the name Nebula_20),
beautiful !
If it was only the newaxis, it can also be set with
try:
NewAxis
except:
NewAxis = newaxis
(Because I use a pre-script, it's easier for me to put it there once)
But there is also a subtle change with "tolist", I see :-(
Two minor remarks about the stars demo:
print """
Right button drag to rotate view.
Left button drag up or down to move in or out.
"""
shouldn't "left button" be "middle button" ?
and you misses at the end where " t += dt"
Nsteps += 1
cheers,
Stef
|