|
From: Bruce S. <Bru...@nc...> - 2009-01-08 20:43:09
|
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. But it was essential to invoke numpy rather than Numeric in Visual 5 because Numeric is no longer supported. In the Visual 5 documentation (accessible from the IDLE help menu), choose "Numpy module (arrays)" for documentation on numpy. Bruce Sherwood Stef Mientki wrote: > hello, > > A number of VP3-scripts uses, like this > > r = pos-pos[:,NewAxis] # all pairs of atom-to-atom vectors > > > NewAxis isn't defined in VP5, > and I can't find any information about NewAxis. > > Anyone has a clue ? > > thanks, > Stef > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |