Automation P-I-D
I mentioned some time ago about a program to calculate PID constants for tuning controllers, follow the link to its online version algorithm for anyone interested http://pastebin.com/wAqZmVnR I thank you for the help I received from many here on the list. ;D -- https://mail.python.org/mailman/listinfo/python-list
Web framework
I'm thinking of porting a Python application that uses numpy for web, basically would like to upload a user-defined data, perform the calculations with numpy and plot charts with the general structure of a site such as a blog for example, I have studied a bit of django and web2py, but I wonder if there is some better framework? or how to choose a particular framework over another? Since now, thanks -- https://mail.python.org/mailman/listinfo/python-list
Re: Automation
Thanks for all the help, I finished the program, follow the download link and a brief explanation of the same (in Portuguese, my native language), I apologize again for my bad english and any inconvenience that I have generated. http://mundodacana.blogspot.com.br/2013/11/programa-para-calculo-de-constantes-pid.html Python commands :D -- https://mail.python.org/mailman/listinfo/python-list
Re: Automation
http://pastebin.com/N9dgaHTx With this program I can read a csv file with 3 columns, in one of these columns I need to read the value more high and multiply by 0.632 and with result, search in the same column by a value that aproximate with this result, and then return the vector position. -- https://mail.python.org/mailman/listinfo/python-list
Automation
I have one .xls file with the values of PV MV and SP, I wanna to calculate Kp Ki Kd with python from this file, can anyone give me any suggestion about how can I do this? From now, thanks. -- https://mail.python.org/mailman/listinfo/python-list
PID tuning.
I am looking for some software for PID tuning that would take the result of a step response, and calculates Td, Ti, Kp, any suggestion or hint of where to start?, thanks. -- https://mail.python.org/mailman/listinfo/python-list
Tornado with cgi form
*I installed tornado and he is functional, but when I execute the following script:* import tornado.ioloop import tornado.web import cgi class MainHandler(tornado.web. RequestHandler): form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')# hdr plus blank line print('Reply Page')# html reply page if not 'user' in form: print('Who are you?') else: print('Hello %s!' % cgi.escape(form['user'].value)) application = tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": application.listen() tornado.ioloop.IOLoop.instance().start() *In the terminal have these outputs:* python test.py Content-type: text/html Reply Page Who are you? *When I call the browser on localhost:, the message is this:* 405: Method Not Allowed * **Please, can someone have a idea about why the error occurs? and what I need to do to fix this?* -- http://mail.python.org/mailman/listinfo/python-list
Python with Apache
I am trying to execute cgi101.py: #!/usr/bin/python import cgi form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')# hdr plus blank line print('Reply Page')# html reply page if not 'user' in form: print('Who are you?') else: print('Hello %s!' % cgi.escape(form['user'].value)) I have installed mod_python do apache2 and created one entry in /etc/apache2/sites-available/default: DocumentRoot /var/www AddHandler mod_python .py PythonHandler cgi101 PythonDebug On What. happen is: when i call this file on browser I have the following error: Can someone help? MOD_PYTHON ERROR ProcessId: 2742 Interpreter:'127.0.1.1' ServerName: '127.0.1.1' DocumentRoot: '/var/www' URI:'/py/cgi101.py' Location: None Directory: '/var/www/py/' Filename: '/var/www/py/cgi101.py' PathInfo: '' Phase: 'PythonHandler' Handler:'cgi101' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1206, in _process_target object = apache.resolve_object(module, object_str, arg, silent=silent) File "/usr/lib/python2.7/dist-packages/mod_python/apache.py", line 696, in resolve_object raise AttributeError, s AttributeError: module '/var/www/py/cgi101.py' contains no 'handler' MODULE CACHE DETAILS Accessed: Mon Apr 15 22:02:42 2013 Generation: 0 _mp_63ea7b6576c7d3a5f48ef8741e8048b0 { FileName: '/var/www/py/cgi101.py' Instance: 1 [IMPORT] Generation: 1 Modified: Mon Apr 15 21:52:27 2013 Imported: Mon Apr 15 22:02:42 2013 } -- http://mail.python.org/mailman/listinfo/python-list
IDE for GUI Designer
Guys, is this, I wonder if there is an IDE with native support for the development of GUI's such as Netbeans with Swing, Visual Basic, etc., already tested the Boa Constructor, and PyQt, but did not like what I'm looking for is an IDE "all in one", ie power encode and draw the screens of the program, someone indicates some?, but what I would like to know everything together with an IDE: Coding + GUI (via visual elements) without the need to import or export anything, like so: I want a button, I click and drag it to a window, give two clicks and encode their actions, understand? Thanks for all. -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter
Thanks for the advices, I need now one scrollbar to roll under screen, I created the scrollbar but cant roll, please help me on this. http://pastebin.com/L6XWY6cm 2013/4/2 Jason Swails > Please keep response replies to the Python list (e.g., use 'reply all' or > just send the email to python-list). > > Also, you should tell people what Python version you are using. I assume > you are using Python 2 since Tkinter was renamed to tkinter in Python 3. > > Finally, do not top-post. Type your responses inside the body of the > email you are responding to. That gives people context for your responses. > > On Tue, Apr 2, 2013 at 11:48 AM, Renato Barbosa Pim Pereira < > renato.barbosa.pim.pere...@gmail.com> wrote: > >> Sorry for my inconsistence: >> >> I need a textbox to get one number and pass for variable called numero >> with one click of button. Thanks . >> >> I have this: >> >> import numpy as np >> import matplotlib.pyplot as plt >> from Tkinter import * >> import tkMessageBox >> >> prefixo = "vetor" >> numero = 10 >> numeroVetores = 0 >> >> def makeWidgets(numero): >> global entries >> window = Tk() >> window.title('Vetores') >> form = Frame(window) >> form.pack() >> entries = {} >> for ix in range(numero): >> label = "%s %s" % (prefixo , ix + 1) >> lab = Label(form, text=label) >> ent = Entry(form) >> lab.grid(row=ix, column=0) >> ent.grid(row=ix, column=1) >> entries[label] = ent >> >> >> >> >> >> Button(window, text="Calcular", command=calcular).pack(side=LEFT) >> Button(window, text="Media", command=media).pack(side=LEFT) >> >> >> >> return window >> >> >> >> def pegavalores(): >> valores = [] >> for chave, entrada in sorted(entries.items()): >> valores.append(entrada.get()) >> >> return valores >> >> >> def calcular(): >> calcular = pegavalores() >> plt.plot(calcular) >> plt.show() >> >> def media(): >> media = pegavalores() >> elementos = len(media) >> media = np.asarray(media, dtype=np.float64) >> valormedio = np.sum(media)/elementos >> tkMessageBox.showinfo("Media", valormedio) >> >> >> window = makeWidgets(numero) >> window.mainloop() >> > > I'm not sure exactly what you are trying to do. My guess is that you want > to get "numero" from user input. Luckily, the tkSimpleDialog module > contains a handy function that does just this: askinteger. So add a call: > > numero = tkSimpleDialog.askinteger('Window Title', 'Please insert the > number of input values you want') > window = makeWidgets(numero) > window.mainloop() > > I leave to you the task of bringing tkSimpleDialog into your namespace. > > Good luck, > Jason > -- > Jason M. Swails > Quantum Theory Project, > University of Florida > Ph.D. Candidate > 352-392-4032 > -- http://mail.python.org/mailman/listinfo/python-list
Tkinter
I need to create a button and a text box follows the text box to enter a number, and this number is expected to create the same screen text boxes, and these text boxes need to be referenced, ie if I enter 30 in the first text box and click the button to be created 30 text boxes so that I can then " call" each of the boxes, eg box1, box2, box3, etc. .. . This all-in Tkinter. I thank you all for understanding and help. -- http://mail.python.org/mailman/listinfo/python-list