Re: SciPy - I need an example of use of linalg.lstsq()

2006-05-10 Thread I. Myself
Robert Kern wrote: > I. Myself wrote: > >> And it has to run on Windows, so it can't use xplt. >> > > Huh? > > A. xplt runs on Windows, too. > B. xplt has nothing to do with linalg.lstsq(). > C. xplt has been removed from scipy. > Thank you.

SciPy - I need an example of use of linalg.lstsq()

2006-05-09 Thread I. Myself
And it has to run on Windows, so it can't use xplt. I would prefer that it use the simplest multi-dimensional model, z = k + a*x1 + b*x2 + c*x3 + d*x4 Anyone have such a thing? Thanks, Mitchell Timin -- I'm proud of http://ANNEvolve.sourceforge.net. If you want to write software, or article

Re: Can Python kill a child process that keeps on running?

2006-05-03 Thread I. Myself
Dennis Lee Bieber wrote: > On Tue, 02 May 2006 17:00:42 GMT, "I. Myself" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> I'm an intermediate Python programmer. Can you explain to me how ctypes >> will let me kill a child p

Re: Can Python kill a child process that keeps on running?

2006-05-02 Thread I. Myself
Steve Holden wrote: > I. Myself wrote: >> Serge Orlov wrote: >> >>> I. Myself wrote: >>> >>> >>>> Suppose we spawn a child process with Popen. I'm thinking of an >>>> executable file, like a compiled C program. >>>

Re: Can Python kill a child process that keeps on running?

2006-05-01 Thread I. Myself
Serge Orlov wrote: > I. Myself wrote: > >> Suppose we spawn a child process with Popen. I'm thinking of an >> executable file, like a compiled C program. >> Suppose it is supposed to run for one minute, but it just keeps going >> and going. Does Python hav

Can Python kill a child process that keeps on running?

2006-05-01 Thread I. Myself
Suppose we spawn a child process with Popen. I'm thinking of an executable file, like a compiled C program. Suppose it is supposed to run for one minute, but it just keeps going and going. Does Python have any way to kill it? This is not hypothetical; I'm doing it now, and it's working pretty

How can I implement a timeout with subprocess.Popen()?

2006-04-30 Thread I. Myself
I want my Python program to invoke a compiled C program, and capture the text output. Here's a fragment from a program that works, using subprocess.Popen: p = Popen(execName, stdout=PIPE) while(1): line = p.stdout.readline() # get next line outfile.write(line) (The

Re: Why does bufsize=1 not work in subprocess.Popen ?

2006-04-29 Thread I. Myself
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, I. Myself wrote: > > >> I read in the docs that "bufsize=1" causes line buffering. (for >> subprocess.Popen) >> >> The following tiny program launches an executable file a

Why does bufsize=1 not work in subprocess.Popen ?

2006-04-29 Thread I. Myself
I read in the docs that "bufsize=1" causes line buffering. (for subprocess.Popen) The following tiny program launches an executable file and then receives its output. That works, but I want to receive each line as it is ouput, not all of the lines at termination, which is what is happening. -

Python used to animate a compiled C program

2006-04-15 Thread I. Myself
SailChallenge was originally a program in C. It simulates a sailboat being navigated by an ANN (Artificial Neural Network). Now a Python "front end" has been created which invokes the compiled C program, and then captures the real time text output, converting it into an animation. A screen s

Re: GUI in python

2006-03-29 Thread I. Myself
[EMAIL PROTECTED] wrote: > Hi, > > I am a python newbie and have used it for about a month. I want to make > a simple GUI app in Python ( I take input form user and do processing > and show results). > > Which gui package is good for me. I need to do it quick and I would not > want a long learning

Re: trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
Dennis Lee Bieber wrote: > On Tue, 28 Mar 2006 18:02:46 GMT, "I. Myself" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> The compile C program, commer.exe, writes a line of text to its stdout. >> The python program does not

Re: trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
Rene Pijlman wrote: > I. Myself: > >> I can't get this to work >> > > With what versions of what software on what platform? > I'm glad you asked. really! Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32 Windows

trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
I can't get this to work: # commer.py - to test communication with other process from popen2 import popen2 (child_stdout, child_stdin) = popen2("commer.exe") print "Got here 1" line = child_stdout.readline() print "Got here 2" child_stdin.write(line) child_stdin.close child_stdout.close The com

Release: vizann-2.0 Tkinter Neural Net Demo Program

2006-03-21 Thread I. Myself
Release Name: vizann-2.0 This freeware program may be downloaded from http://sourceforge.net/projects/annevolve. *Notes:* This is a program to graphically demonstrate the operational details of two types of ANN (Artificial Neural Network) when used to implement the XOR function. The program is 1

Llearn a Little About Artificial Neural Networks and TKinter

2005-04-29 Thread I. Myself
The VizANN package is a free download from annevolve.sf.net. It contains a python program that graphically demonstrates a recurrent binary neural network. There is also an explanatory text file. Mitchell Timin -- "In theory, there is no difference between theory and practice. In practice, the