Re: python system subprocess win32

2007-08-07 Thread mclaugb
he program. Hope this makes more sense! Bryan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 7, 9:48 am, "mclaugb" <[EMAIL PROTECTED]> wrote: >> Hello ALl, >> I have a compiled program "conv.exe" that works as follows:>>conv.e

python system subprocess win32

2007-08-07 Thread mclaugb
Hello ALl, I have a compiled program "conv.exe" that works as follows: >>conv.exe - Please selection from the following options. press "h" for help, "p" for print, "r" for readfile. Enter your request now: ... Is there a way to script python using

Re: ctypes pointer

2007-06-19 Thread mclaugb
Yes, i double defined one of the terms when copying it. This now works by value and by reference. Thanks alot, Bryan "Thomas Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb schrieb: >> I have a simple function >> >> void adder(

Re: ctypes pointer

2007-06-19 Thread mclaugb
I answered this one already. from ctypes import * libx = CDLL("small_dll5.dll", RTLD_GLOBAL) libx = cdll.small_dll4 libx.adder.restype = None libx.adder.argtypes = [c_double, c_double, POINTER(c_double)] real=c_double(0) imag=c_double(0) zz=libx.adder(3.342,4,byref(size)) print size

ctypes pointer

2007-06-19 Thread mclaugb
I have a simple function void adder(double a, double b, double *c){ *c = a+b; } i have created a shared dll -- "small_dll4.dll" of it using visual studio. now i wish to call it from python. to do so, i have done the following: libx = cdll("small_dll4.dll", RTLD_GLOBAL) libx.adder.argtypes = [c_

Re: very simple shared dll with ctypes

2007-06-19 Thread mclaugb
Assigining restype and argtypes works! "Thomas Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb schrieb: >> I have created a simple windows small_dll.dll exporting a function that >> does >> a computation using C and C++ cla

very simple shared dll with ctypes

2007-06-19 Thread mclaugb
I have created a simple windows small_dll.dll exporting a function that does a computation using C and C++ classes which i wish to call from Python. I have read lots of ctypes documentation but I still dont quite understand how to call the function. As a test, I have written a much simpler mathem

Re: scipy.optimize.lbfgsb help please!!!

2007-01-20 Thread mclaugb
7;d'" "Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb wrote: >> Does anyone out there have a piece of code that demonstrates the use of >> the >> lbfgsb multivariate, bounded solver in the scipy.optimize toolkit? A

scipy.optimize.lbfgsb help please!!!

2007-01-20 Thread mclaugb
Does anyone out there have a piece of code that demonstrates the use of the lbfgsb multivariate, bounded solver in the scipy.optimize toolkit? An example would get me started because my code below does not seem to work. Thanks alot, Bryan I have tried to use the LBFGSB optimisation algorithm w

thread join() not stopping

2006-09-02 Thread mclaugb
Here is a simple piece of thread code. When i add the print (or other) function into the run method--the thread fails to stop after 2 seconds which the join(2) should ensure. I have a function that I must have timeout and cannot figure a way to do this. Any help appreciated. Should compile on 2.

thread join() not stopping

2006-09-02 Thread mclaugb
Here is a simple piece of code. When i add the print (or other) function into the run method--the thread fails to stop after 2 seconds which the join(2) should ensure. Any help appreciated. Should compile on 2.4 -- http://mail.python.org/mailman/listinfo/python-list

Matrice Multiplication Problem

2006-08-24 Thread mclaugb
I want to multiply two arrays: a matrice and the conjugate of its transpose. Then i wish to invert the resulting matrix. In Matlab, the statement is : Z= inv(M .' * M) To implement in python, I simply cannot get this to work. Here is my code: from numpy import * import scipy as Sci from sci

Re: activestate vs enpython

2006-07-14 Thread mclaugb
Um, i didnt see at the "more information" link whether "numpy, numarray, matplotlib, scipy, and scientific python" was included . "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb wrote: > >> does anyone kno

activestate vs enpython

2006-07-14 Thread mclaugb
does anyone know if the activestate distribution has all of the numpy, numarray, matplotlib, scipy, and scientific python? their website does not say what it includes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific Computing with NumPy

2006-02-06 Thread mclaugb
le > instead of the older Numeric module. The confusion is inevitable in > this time of transition, but their intent is to standardize on one > array package. > > Brendan > -- > Brendan Simons > > > > mclaugb wrote: >> This page documents the differences. It see

Re: Scientific Computing with NumPy

2006-02-06 Thread mclaugb
This page documents the differences. It seems that NumPy is supported and more recent. http://numeric.scipy.org/ "linda.s" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 2/6/06, mclaugb <[EMAIL PROTECTED]> wrote: > Has anyone recompiled the Scientifi

Scientific Computing with NumPy

2006-02-06 Thread mclaugb
Has anyone recompiled the Scientific Computing package using NumPy instead of Numeric? I need a least squares algorithm and a Newton Rhaphson algorithm which is contained in Numeric but all the documentation out there says that Numeric is crap and all code should be using NumPy. Thanks, Bryan

Winpdb question

2005-11-09 Thread mclaugb
Is there any way to either restrict the number of variables displayed in the Globals or Locals section. It is a pain having to search through this list all of the time just to look at the values of variables in my program. Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: debugger

2005-11-09 Thread mclaugb
is there a way to only look at specific variable names in Winpdb? It takes forever to debug something when i constantly have to search for variables. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Benji York wrote: >> [EMAIL PROTECTED] wrote: >> > Benji York wrote: >> >>You mi

debugger

2005-11-08 Thread mclaugb
Is there a decent debugger to use with IDL? I have briefly about "PDB" but this looks pretty limited in features and difficult to use. Any suggestions? Bryan -- http://mail.python.org/mailman/listinfo/python-list

command line path

2005-09-05 Thread mclaugb
I am trying to pass the name of several files to a python script as command line arguments. When i type in python ImportFiles_test.py C:\Program Files\National Instruments\LabVIEW 7.1\project\calibration\FREQUENCY_ 13.CSV The following error results: C:\Program Traceback (most recent call la