Robert VERGNES | 2 Apr 11:17
Picon
Favicon

QME-Dev Workbench (wxSciPy) Beta 2.7 - RELEASED TODAY on sourceforge

What's New on QME-DEV (wxSciPy) workbench on Beta 0.2.7.x:
Download:
http://sourceforge.net/project/platformdownload.php?group_id=181979

*Compatible Python 2.4 and wxPython 2.6.x:
As most of the people are (still) using Python 2.4 and wxpython 2.6.x.. I did a back port from Python 2.5 and wxpython 2.8 .
So now the version QME-DEV Beta 0.2.7 should be working on Mandriva and xUbuntu

*Externally Processed Python Shells:
You can now Run several VERY long tasks and keep working with the wxGUI !
Thank you to Josiah Carlson for his library and help on this issue. It is now functional.
The advantage of externally processed Python Shells is that you can start long tasks
and the wxGUI is not blocked or frozen. So you can use it to plot, prepare your script or
do other things such as export/import data etc... (tested with 5 shells running on long
tasks > 35min, tested:solo-long task > 1hr). In fact the Python Shell windows in the main
application are just terminals to the underlying Python Shells... which are external
process to the application. The python shell windows you see are not the shells,..
this is clever.. and it does work nicely. Again. Thank you Josiah !

*Externally Processed MatplotLib window-canvas:
So Matplotlib windows are stable and stays up even when wxGUI has some troubles
or handles something else. It also gives full MatPlotlib (pylab) user functionalities
( zoom, save, etc..) as I use the original Pylab library.
Usually you cannot have that with wxMPL unless you do the implementation yourself.
-if people need other kind of plotting than curves let me know I might look at it.
But I need example data file / .py srcipt - etc..
The time-stamp and parameters-stamp work (on/off) and are displayed on the graph.

* Transfer to / from the Python Shell of the values :
Data to/from wxGUI from/to Python Shells ,
Transfer of data "from/to the wx.GUI to/from the shells" is now working via temporary files.
It has been tested With up to 100,000linesx10 columns. Transfer to the wxGrid without troubles.
It CAN be MUCH more but I have not tested it.
While writing, I am testing longs tasks > 60min with 1 million lines vector output which
will be transfered in the wxGrid GUI.
The way it works: a part of the dictionary from the wxGUI application goes to the shell
and then a dictionary from the shell comes back updated to the application.
( after you scripts has run for example). So you can plot straight-away.

*Improved Window and Sizer stability:
I Removed the collapsible pane controls from the notebooks.
I did not manage to have the collapsible panes to work properly inside a notebook. 
And it was creating some strange problem with resizing and reducing the Main window.
So they have been removed and sizing is now working ok.

*File Impot/Export:
Now the CSV import/export works as well as the TSV.
The DataGrid accepts Float, Integer, Complex, String(date format default to string).

*Stability:
I had no crash during several hours in row with long task running
( more than 5 long tasks in 5 shells)

What is QME-DEV(wxSciPy) Workbench:
It is a Python based workbench GUI to help analyze experimental datas.
You can load/save/export datas, graph and apply scripts to your data using Shells which are
linked with the GUI. (ie the data's GUI dictionaries are transfered to the shell
namespace so you can use you data in the shell).
The application is organized by experiment -a datapage, one experiment-, a set of experiments
 a set of datapages. The DataPage 0 - is your first experiment, the DataPage 1, the second
and so on... In each DataPage,so for each of your experiment, you have a grid page( excel like),
 an equation page ( where you can write your python script and set some parameters
(for curve fitting for example)), a GraphPage to plot your data, a Shell Page where the data
of the current experiment (in the current DataGrid) will be transfered along with your script
for execution and/or manual work in the shell, and finally you have a NotePage to take some notes.
In the equation page ( where you can copy some python script to be executed later in the Shell of
this page),  you have 2 buttons. One button [Eval] which sends the data's dictionary of your
current DataPage(experiment) to the Shell along with your script for execution.
And you have below a second button [GetBack] which allows you get back the namespace from
the Shell ( after execution and/or manual work) into the DataGrid of the  current page.
If you create new variables during your script executions and you want to see this variables
 in your grid, the labels of the columns of the grid must be set first. As the GUI cannot
guess what you want from the Shell. A Help with examples is included in the package
(pdf format). The GUI is based on wxPython and it uses SciPy or other library for your scientific
and math scripts.

Needed libraries(dependencies):
Python 2.4, wxPython 2.6.x, SciPy 0.5.x, Numpy, and MatPloLib (pylab).

The download address: www.sf.net/projects/qme-dev

Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
Eli Brosh | 2 Apr 12:03
Picon

Bugs in special

Hello
I am trying to convert from MATLAB to Python with SciPy.
I am using Python 2.4.3 for Windows (Enthought Edition)
As a start, I tried to use the special functions from the SciPy  "special" module.
There, I encountered some problems that may be a result of bugs in SciPy.
 
 
The session (in IDLE) goes like:
 
>>>from scipy import *
>>> x=.5
>>> special.jv(0,x)
0.938469807241
>>> y=.5+1.j
>>> y
(0.5+1j)
>>> special.jv(0,y)
>>> ================================ RESTART ================================
When I try to put a complex argument in special.jv, I get an error message from the operating system (windows XP):
It says "pythonw.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
 
The IDLE does not close but it is restarted:
There appears a line:
>>> ================================ RESTART ================================
 
This does not occur when the argument of special.jv is real.
 
However, even real arguments in special.ber and special.ker provoked the same crash and the same error message.
 

 
Is this a bug in SciPy or am I doing something wrong ?
 
 
Thanks
Eli
 
_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
Nils Wagner | 2 Apr 12:59
Picon
Favicon

Re: Bugs in special

On Mon, 2 Apr 2007 13:03:03 +0300
  "Eli Brosh" <ebrosh <at> nana.co.il> wrote:
> Hello
> I am trying to convert from MATLAB to Python with SciPy.
> I am using Python 2.4.3 for Windows (Enthought Edition)
> As a start, I tried to use the special functions from 
>the SciPy  "special" module.
> There, I encountered some problems that may be a result 
>of bugs in SciPy.
> 
> 
> The session (in IDLE) goes like:
> 
>>>>from scipy import *
>>>> x=.5
>>>> special.jv(0,x)
> 0.938469807241
>>>> y=.5+1.j
>>>> y
> (0.5+1j)
>>>> special.jv(0,y)
>>>> ================================ RESTART 
>>>>================================
> 
> When I try to put a complex argument in special.jv, I 
>get an error message from the operating system (windows 
>XP):
> It says "pythonw.exe has encountered a problem and needs 
>to close. We are sorry for the inconvenience."
> 
> The IDLE does not close but it is restarted:
> There appears a line: 
>>>> ================================ RESTART 
>>>>================================
> 
> This does not occur when the argument of special.jv is 
>real.
> 
> However, even real arguments in special.ber and 
>special.ker provoked the same crash and the same error 
>message.
> 
> 
> 
> Is this a bug in SciPy or am I doing something wrong ?
> 
> 
> Thanks
> Eli
> 
See the tickets

http://projects.scipy.org/scipy/scipy/ticket/301

http://projects.scipy.org/scipy/scipy/ticket/387

Nils
Eli Brosh | 2 Apr 14:05
Picon

Re: Bugs in special

Thank you Nils
I looked at the tickets 
http://projects.scipy.org/scipy/scipy/ticket/301
<http://projects.scipy.org/scipy/scipy/ticket/301> 

http://projects.scipy.org/scipy/scipy/ticket/387
<http://projects.scipy.org/scipy/scipy/ticket/387> 

It seems that inded, there are some serious bugs in  Bessel and Kelvin functions in 'special' package.
However, the bugs reported in these "tickets" are not the bug I encountered. 
Perhaps they are related.

Eli

________________________________

From: scipy-user-bounces <at> scipy.org on behalf of Nils Wagner
Sent: Mon 02/04/2007 13:59
To: SciPy Users List
Subject: Re: [SciPy-user] Bugs in special

On Mon, 2 Apr 2007 13:03:03 +0300
  "Eli Brosh" <ebrosh <at> nana.co.il> wrote:
> Hello
> I am trying to convert from MATLAB to Python with SciPy.
> I am using Python 2.4.3 for Windows (Enthought Edition)
> As a start, I tried to use the special functions from
>the SciPy  "special" module.
> There, I encountered some problems that may be a result
>of bugs in SciPy.
>
>
> The session (in IDLE) goes like:
>
>>>>from scipy import *
>>>> x=.5
>>>> special.jv(0,x)
> 0.938469807241
>>>> y=.5+1.j
>>>> y
> (0.5+1j)
>>>> special.jv(0,y)
>>>> ================================ RESTART
>>>>================================
>
> When I try to put a complex argument in special.jv, I
>get an error message from the operating system (windows
>XP):
> It says "pythonw.exe has encountered a problem and needs
>to close. We are sorry for the inconvenience."
>
> The IDLE does not close but it is restarted:
> There appears a line:
>>>> ================================ RESTART
>>>>================================
>
> This does not occur when the argument of special.jv is
>real.
>
> However, even real arguments in special.ber and
>special.ker provoked the same crash and the same error
>message.
>
>
>
> Is this a bug in SciPy or am I doing something wrong ?
>
>
> Thanks
> Eli
>
See the tickets

http://projects.scipy.org/scipy/scipy/ticket/301

http://projects.scipy.org/scipy/scipy/ticket/387

Nils

_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user

Attachment (winmail.dat): application/ms-tnef, 5785 bytes
_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
Giorgio Luciano | 3 Apr 14:25
Picon

question about standalone small software and teaching

Hello Dear All,
I just have a question for all that  uses python/numpy/scipy/matplotlib 
for making science.
I use with no problem in my computer  python+numpy+scipy+matplotlib and 
I'm very satisfied with them.
I was a matlab user. I still not have unearthed the power ot python but 
I'm happy to use a programming language and not a metalanguage. When I 
gave people my software (in matlab) the all ask me if I could compile 
and create some interface.
I tried to use matlab GUIs, succeded in creating, but then I had a lot 
of problems. Compiling not always worked. after compiling you have not a 
workspace and so I had to make all output as txt files... and so on.
Now that I use python I'm again with the same problem. I create easy 
routines (for chemometrics) and then people ask me if I can make a 
standalone program with interface.
I used orange and for NN it's surely one of the best, but I'm not good 
at programming widgets. Then I think about it, searched the web and 
didn't find anything.
What I'm searching is something similar to labview :)
At first I thought ... hey why people wat an interface, just use the 
console, and then after listening  to their reason I have to agree.
What do I generally do ? I have a matrix in txt, I apply my routines (a 
SVD, a PCA, a filter etc etc  written in python), plot them (using 
maplotlib) and then I want an output. that's it.
I started looking at various Qt etc. etc. but for me it's overhelming, 
because I think that the most important part should be dedicate to the 
routines creation and not to making a gui, compiling, etc. etc. I need 
simple command like people wants. grids, paste and copy, small working 
plots :)
I mean I can get crazy with setting my program, importing etc. etc. but 
I also have to say that needs and claim about writing simple guis, 
common paste and copy etc should be considered from someone there (we 
wait for the help of some guru that makes things easier ;)

thanks for reading the mail
Giorgio
Gael Varoquaux | 3 Apr 15:21
Favicon
Gravatar

Re: question about standalone small software and teaching

You can do a script with a GUI front end, as described in the first
chapter of my tutorial
http://gael-varoquaux.info/computers/traits_tutorial/traits_tutorial.html
. You can also build a complete interactive application, as described in
the rest of the tutorial, but this is more work.

If you have more questions about this approach feal free to ask.

Gaƫl
Langella Raphael | 3 Apr 17:58
Picon

Compiling numpy and scipy on AIX 5.3

Using information from this post :
http://thread.gmane.org/gmane.comp.python.scientific.user/6237/focus=628
6, I noticed my compiler wasn't properly detected.
When I just type xlf, it brings the man page, without any version
information. I have to type xlf -qversion and it prints :

IBM XL Fortran Enterprise Edition V10.1 for AIX
Version: 10.01.0000.0003

I made the following changes in ibm.py so the compiler is properly
detected :
Line 11 :
    version_pattern =  r'IBM XL Fortran (Enterprise Edition
|)V(?P<version>[^\s*]*)'
line 14 :
	'version_cmd'  : ["xlf -qversion"],
line 25 :
	xlf_dir = '/etc'
line 54 :
	xlf_cfg = '/etc/xlf.cfg' % version

Now numpy detects the compiler. Then, I set BLAS and LAPACK
environnement variables, and I get this when compiling numpy :
xlf95 -bshared -F/ptmp/tmp4WLhqo_xlf.cfg
build/temp.aix-5.3-2.5/numpy/core/blasdot/_dotblas.o -L/usr/local/lib
-lfblas -o build/lib.aix-5.3-2.5/numpy/core/_dotblas.so
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
error: Command "xlf95 -bshared -F/ptmp/tmp4WLhqo_xlf.cfg
build/temp.aix-5.3-2.5/numpy/core/blasdot/_dotblas.o -L/usr/local/lib
-lfblas -o build/lib.aix-5.3-2.5/numpy/core/_dotblas.so" failed with
exit status 8

What's happening there?
Bobo South Africa | 3 Apr 19:52
Picon

Linear Integral Equation second kind

Hi all,

I would want to compute the numerical solution of the following integral equation
 ( Volterra integral equation for the second kind) :

 

 f(t) = \int_{a}^{ b} f(t-x)g(x)dx + h(t)                      (latex symbol)

where the unknown function is f(t).

Thank for your help



_______________________________________________
SciPy-user mailing list
SciPy-user <at> scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
Anne Archibald | 3 Apr 23:17
Picon

Re: Linear Integral Equation second kind

On 03/04/07, Bobo South Africa <wizzard028wise <at> gmail.com> wrote:
> Hi all,
>
> I would want to compute the numerical solution of the following integral
> equation
>  ( Volterra integral equation for the second kind) :
>
>
>
>  f(t) = \int_{a}^{ b} f(t-x)g(x)dx + h(t)                      (latex
> symbol)
>
> where the unknown function is f(t).

As far as I know, scipy does not implement solving these equations.
But it does implement some tools which should allow you to solve them
quite efficiently (at least in terms of your time, possibly not in
terms of CPU time).

I recommend looking at Numerical Recipes: http://www.nrbook.com/b/bookcpdf.php

See if the algorithms they describe can take advantage of the tools in
scipy - in particular, there are both smart adaptive quadrature rules
and splines, if you'd like to work with a spline representation of
your function. Alternatively, if you want to compute your function on
a grid and use numerical integration adapted to the grid, scipy
implements not only trapezoidal and Simpson integration on arbitrary
grids, in scipy.special you will find various families of orthogonal
polynomials along with all the coefficients to do Gaussian integration
in terms of those. Finally, even if you implement the calculation
mostly by hand, be aware that there are a host of linear algebra tools
to help.

Anne

>
> Thank for your help
>
>
>
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user <at> scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
stef mientki | 3 Apr 23:31
Picon
Picon

Re: question about standalone small software and teaching

sorry my previous answer is hold by the mailmanager,
because of some trouble with my mail accounts.
> What I'm searching is something similar to labview :)
>   
I just succeeded in doing the first calculation in Signal WorkBench,
and although it's pure ASCII text,
it has some of the really useful benefits of LabView ;-)
You can see this first result here
http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/help/jallcc_signal_workbench.html#code_window

--

-- 
cheers,
Stef Mientki
http://pic.flappie.nl

Gmane