submit jobs on multi-core

2012-09-10 Thread Dhananjay
Dear all, I have a python script in which I have a list of files to input one by one and for each file I get a number as an output. I used for loop to submit the file to script. My script uses one file at a time and returns the output. My computers has 8 cores. Is there any way that I could submi

How to queue functions

2012-09-17 Thread Dhananjay
Dear all, I am trying to use multiprocessing module. I have 5 functions and 2000 input files. First, I want to make sure that these 5 functions execute one after the other. Is there any way that I could queue these 5 functions within the same script ? Next, as there are 2000 input files. I coul

Distance between point and a line passing through other two points

2018-02-07 Thread Dhananjay
Hello all, I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2). I also have a line joining points (x1,y1,z1) and (x2,y2,z2). For example, p0=[5.0, 5.0, 5.0] p1=[3.0, 3.0, 3.0] p2=[4.0, 4.0, 4.0] a = np.array(p0) b = np.array(p1) c = np.array(p2) I want to write a script that c

how to write list in a file

2014-04-23 Thread Dhananjay
Hello everyone, I am trying hard to write a list to a file as follows: def average_ELECT(pwd): os.chdir(pwd) files = filter(os.path.isfile, os.listdir('./')) folders = filter(os.path.isdir, os.listdir('./')) eelec = 0.0; evdw = 0.0; EELEC = []; elecutoff = []; g = Gnuplot.Gnu

2d color-bar map plot

2014-10-16 Thread Dhananjay
Dear all, I am bit new to the python/pyplot. This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2

[no subject]

2014-10-17 Thread Dhananjay
Hello, This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2.0848862071 -2.1708981985 3.340452096

How to read columns in python

2009-02-23 Thread Dhananjay
the things. Thanking you in advance -- Dhananjay -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read columns in python

2009-02-23 Thread Dhananjay
columns(in matrix) and column3 corresponds to value in the matrix. -- Dhananjay On Tue, Feb 24, 2009 at 12:18 PM, Chris Rebert wrote: > On Mon, Feb 23, 2009 at 10:41 PM, Dhananjay > wrote: > > I am bit new to python and programming and this might be a basic > question: > &

Regarding sort()

2009-05-25 Thread Dhananjay
-- -- Dhananjay C Joshi Project Assistant Lab of Structural Biology, CDFD, Bldg.7, Gruhakalpa 5-4-399/B, Nampally Hyderabad- 51, India Tel: +91-40-24749404 Fax: +91-40-24749448 -- -- http://mail.python.org/mailman/listinfo/python-list

Re: benchmark

2008-08-07 Thread Dhananjay
On Aug 7, 6:12 pm, alex23 <[EMAIL PROTECTED]> wrote: > On Aug 7, 8:08 pm, [EMAIL PROTECTED] wrote: > > > Really how silly can it be when you suggest someone is taking a > > position and tweaking the benchmarks to prove a point [...] > > I certainly didn't intend to suggest that you had tweaked -any

Re: benchmark

2008-08-07 Thread Dhananjay
python hold back from bringing it in to its core. Is it that a question of time and effort, or is there something that doesn't make it appropriate to python ? Cheers, Dhananjay -- http://mail.python.org/mailman/listinfo/python-list

count

2009-07-07 Thread Dhananjay
here in column 2. I could write seperate programme to get the result.s. However, is there any way to count the numbers there itself while sorting in column 2 ? Thanking you in advance, -- Dhananjay -- http://mail.python.org/mailman/listinfo/python-list

Re: [BangPypers] extracting unicode text from pdfs

2010-05-24 Thread Dhananjay Nene
You may want to try out pdfminer. Its very similar to xpdf in structure and should give you the parsed data into unicode directly. On Mon, May 24, 2010 at 7:13 PM, Eknath Venkataramani wrote: > I have around 45 pdfs to convert into raw text containing text in _HINDI_ . > When I use the xpdf pack