PyMPI comm.gather problem

2010-05-11 Thread Peyman Askari
always constant. Furthermore, I added a sleep(5) command before the line to make sure it was not a synchronization issue. Has anyone got any possible ideas as to what could possibly be going wrong? Cheers Peyman Askari -- http://mail.python.org/mailman/listinfo/python-list

long int OverflowException

2010-04-28 Thread Peyman Askari
int, is being converted into a long int, and then leading to an exception. Cheers Peyman Askari -- http://mail.python.org/mailman/listinfo/python-list

Python Line Intersection

2010-04-09 Thread Peyman Askari
://www.maths.abdn.ac.uk/~igc/tch/eg1006/notes/node23.html). However, it requires that you solve for two equations. How can I do this in Python, either solve equations, or calculating intersection points some other way? Cheers Peyman Askari

Importing v reloading modules modules

2010-03-19 Thread Peter Peyman Puk
c 'global %s'%module_name but that does not work very well with exec any suggestions? Cheers Peyman -- http://mail.python.org/mailman/listinfo/python-list

Importing modules

2010-03-19 Thread Peyman Askari
I want to write a function which imports modules the first time, and reloads them afterwards, but I am running into problems with global variables and exec. I will include a full script, but let me elaborate first. Essentially what you need is def import_or_reload():  """assume we want to load

Re: a newbie's question

2010-03-11 Thread PEYMAN ASKARI
PyUnit is. Thanks Peyman --- On Thu, 3/11/10, Lan Qing wrote: From: Lan Qing Subject: Re: a newbie's question To: "Python List" Received: Thursday, March 11, 2010, 4:56 AM hi Cheers,     Think you, that helps me a lot. On Tue, Mar 9, 2010 at 10:00 PM, Simon Brunning wro

Importing Modules

2010-03-10 Thread PEYMAN ASKARI
ort.py file as well as 4 module files which it loads. Save the tes_import.py file to a folder, create another folder there, and save ONLY the 4 modules files to that new folder. In the code, update line 26 to reflect to path of the newly created directory Thanks in advanced Peyman #!/usr/b

running python as a dameon

2008-09-05 Thread peyman
Hi I have a Natural Language Processing (NLP) code written in python that reads into memory a large training file and then given a sentence tags it, using the training data. I want to put this NLP code on a server which handles all incoming client http requests via PHP. What I want to do is to pro