Re: Experience regarding Python tutorials?
Shoeshine wrote on 25/08/2005 17:43: > Cheers everyone, I aim to learn a programming language and haven't yet > decided on what's going to be. Here I'd like to hear some voices on > where I should start, and pls don't hit me google. I have been doing > some research, but I'd like to hear about some real life expiriencies on > subject. Is Python maybe a to small target for newcomers? Make it > compared to Perl... Try [http://www.python.org/doc/Intros.html]. There are lots of different-level introductions and tutorials available that should give you an idea of what to expect of Python. -- Peter -- http://mail.python.org/mailman/listinfo/python-list
Painless way to do 3D visualization
Hey folks, I need to do the following relatively simple 3D programming: I want to convert data from four-item tuples into 3D co-ordinates in a regular tetrahedron. Co-ordinates come in sequences of 10 to 20, and the individual dots in the tetrahedron need to be connected into discontinuous lines. A single tetrahedron should contain at least two, possibly more, such lines. I would like to show certain similarities in the sequences/lines, eg by changing color, thickness, or maybe attaching indeces to certain points in a particular sequence. I'd welcome suggestions as to what might be the most painless way to achieve this in Python. So far, I've only tinkered a little with VPython, but the lack of any decent documentation has proved to be a major turn-off. TIA! -- Peter -- http://mail.python.org/mailman/listinfo/python-list
Re: Painless way to do 3D visualization
faulkner wrote: > http://www.vpython.org/ Oh, thanks, but let me quote myself: >> So far, I've only tinkered a little with VPython, but the lack >> of any decent documentation has proved to be a major turn-off. So, I'd really appreciate any hints as to where to look for anything a little more usable. -- Peter -- http://mail.python.org/mailman/listinfo/python-list
Re: New SourceForge project: Diet Python!!!
TOFU sucks! The Eternal Squire wrote: > Best interface for roguelike gaming. > > Jarek Zgoda wrote: >> The Eternal Squire napisa³(a): >> >>> Diet Python is a flavor of Python with allegro, multiarray, umath, >>> calldll, npstruct and curses builtin, all else nonessential to language >>> ripped out. Total size < 3MB, 1% of PSF Python. Diet Python helps keep >>> clients thin :) >> Why do you think curses are essential? I'd rip out them too, they have >> no use on Windows. >> >> -- >> Jarek Zgoda >> http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list
Interpolation of a discrete 3D trajectory
Hey guys, I'm looking for a way to smooth out the edges of a 3D trajectory that is really just a sequence of points in space. I've got co-ordinates just like these: 0.072 -0.25 0.582 -0.036 -0.25 0.644 0.036 0.338 0.104 What I would like to have now is for the trajectory not to pass through the individual points at a sharp angle, but to have an interpolated curve instead. Is there a reasonably easy way from, say, a 10 co-ordinate input to get a 90 co-ordinate output with the 8 inner nodes replaced by a 10-point quasi-curve? (A cookbook recipe and SciPy didn't seem to contain obvious solutions.) -- Peter -- http://mail.python.org/mailman/listinfo/python-list
Controlling gnuplot via subprocess.Popen
I am trying to plot something in gnuplot 4.2 using co-ordinates a Python 2.5 program computes. Here's what I'm doing: py> from subprocess import * py> plot = Popen("c:/progs/gp/bin/wgnuplot.exe", stdin=PIPE) py> plot.stdin.write("plot x*x") The first command dutifully opens gnuplot, but the second doesn't do anything. Could someone favour me with an explanation as to the whyness? -- Peter -- http://mail.python.org/mailman/listinfo/python-list
Memory limit to dict?
I was wondering whether certain data structures in Python, e.g. dict, might have limits as to the amount of memory they're allowed to take up. Is there any documentation on that? Why am I asking? I'm reading 3.6 GB worth of BLAST output files into a nested dictionary structure (dict within dict ...). Looks something like this: { GenomeID: { ProteinID: { GenomeID: { ProteinID, Score, PercentValue, EValue } } } } Now, the thing is: Even on a machine with 16 GB RAM, the program terminates with a MemoryError, obviously long before the machine's RAM is used up. I've no idea how far the Windows task manager's resource monitor can be trusted -- probably not as far as I could throw a heavy-set St Bernard --, but it seems to stop roughly when that monitor records a swap file size of 2.2 GB. Barring any revamping of the code itself, which I will have to do anyway, is there anything so far that would indicate a problem inherent to Python? (I can post the relevant code too, of course, if that would help.) TIA! -- Peter -- http://mail.python.org/mailman/listinfo/python-list