help with processing text file

2014-12-04 Thread C. Ng
Hi, Given the sample text file below (where the gibberish represent the irrelevant portions) : abcddsdfffgfg ggfhghghgfhghgh round 5 xccdcxcfd sdfdffdfbcvcvbbvnghg score = 0.4533 abcddsdfffgfg round 5 level = 0.15 ggfhghghgfhghgh round 10 dfsdfdcdsd sdfdffdfbcvcvbbvnghg score = 0.4

understanding someone else's program

2013-11-15 Thread C. Ng
Hi all, Please suggest how I can understand someone else's program where - documentation is sparse - in function A, there will be calls to function B, C, D and in those functions will be calls to functions R,S,T and so on so forth... making it difficult to trace what happens to a certain

Re: install package from github repository

2013-11-05 Thread C. Ng
Ok, that seems to work... I modified from another package. I don't understand how setup.py does it exactly, but got it done anyways. -- https://mail.python.org/mailman/listinfo/python-list

Re: install package from github repository

2013-11-05 Thread C. Ng
nope there is no installation instructions -- https://mail.python.org/mailman/listinfo/python-list

install package from github repository

2013-11-04 Thread C. Ng
Hi, I have cloned someone's repository on my local drive using git command: git clone http://github.com/xxx.git But I don't find any setup.py file. How do I install the package xxx? So that I can 'import xxx' in my python script. Many thanks. -- https://mail.python.org/mailman/listinfo/pyt

Re: problem importing

2013-10-29 Thread C. Ng
On Tuesday, October 29, 2013 6:40:37 PM UTC+8, Peter Otten wrote: > C. Ng wrote: > Hi all, > So I cloned a package xyz from github. OS is ubuntu > 12.04. > Then install successfully using "sudo python setup.py install" > Now > when I try to import xyz, I get &q

problem importing

2013-10-29 Thread C. Ng
Hi all, So I cloned a package xyz from github. OS is ubuntu 12.04. Then install successfully using "sudo python setup.py install" Now when I try to import xyz, I get "ImportError: No module named xyz" unless my current working directory is in xyz. Appreciate your help. Thanks. -- https://mail.p

numpy array operation

2013-01-29 Thread C. Ng
Is there a numpy operation that does the following to the array? 1 2 ==> 4 3 3 4 2 1 Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list