The problem has been solved opening the file for iteration in the second
loop. I didn't realized such Python behavior.
Any comments are appreciated.
Fred
--
View this message in context:
http://python.6.n6.nabble.com/SOLVED-for-loop-weird-behavior-tp4953214p4957597.html
Sent from the Python - p
Hi there,
I simply can't print anything in the second for-loop bellow:
#
#!/usr/bin/env python
import sys
filename = sys.argv[1]
o
Hi there,
The problem has been solved. I 've decided to run the python script as
argument of qsub instead of run qsub from inside of the script itself. I
also use .wait() as suggest by colleagues above.
Final code goes here:
http://ompldr.org/vZDFiag
Thank you very much for helping.
--
View th
nd
> program."
>
Code goes here:
http://ompldr.org/vZDB5YQ
stdout:
$ no_name.py --toplist top_percent.list
Traceback (most recent call last):
File "/home6/psloliveira/ferreirafm/bin/no_name.py", line 73, in
main()
File "/home6/psloliveira/ferreirafm/bin/no_name
Hi James, thank you for your replay. Indeed, the problem is qsub. And as
warned by Robert, I don't have functions properly, but just scripts.
--
View this message in context:
http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html
Sent from the Python - python-list mailing lis
Hi Robert,
Thanks for you kind replay and I'm sorry for my semantic mistakes.
Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly,
that's not the best approach and the only problem. I've unsuccessfully tried
to set an os.environ and call qsub from it. However, subprocess.Po
Hi Ian,
That what I have:
> burst.py
Your job 46665 ("top_n_pdb.qsub") has been submitted
Your job 4 ("extr_pdb.qsub") has been submitted
Your job 46667 ("combine_top.qsub") has been submitted
The first job runs quite well. The second is still runing and the third
issue the following:
> more
Hi List,
I've coded three functions that I would like to concatenate. I mean, run
them one after another. The third function depends on the results of the
second function, which depends on the results of the first one. When I call
one function after another, python runs them at the same time causin