Well, I cant get it to work.
Pymol speeds ahead of calling propka.propka

Can you give an example of subprocess?
---------------------------

import propka

python
resis = [["1bj6","36"],["1bj6","39"]]
#resis = [["1bj6","36"],["1bj6","39"],["1bj6","49"],["1ag1","14"],["1gu9","133"],["1gu9","130"],["1omu","56"],["1khg","273"],["2trx","35"],
#["1tde","32"],["1tde","35"],["2ovo","56"],["1m8b","56"],["1hic","39"],["1m8c","56"]]
i = 0
for resi in resis:
    cmd.fetch(resi[0],async="0")
    cmd.refresh()
    # When we import a module in python, the namespace is normally: module.function 
    # And we see, that propka expect resi to be in "str" format.
    # And we don't want the logtime function
    propka.propka(molecule=resi[0],resi=resi[1],logtime=i)
    cmd.refresh()
    i = i + 1
python end
zoom all


hth
Martin


On 23.08.11 10:48, Troels Emtekær Linnet wrote:
Hi.

If one writes a pymol script, and calls an external function, the pymol script continues its operation before waiting for the "success" of the external function.

Is it possible to give a keyword, so it "waits" for the external function before preceding?

Kind of the same function with:
fetch 1hp1, async=0

Best
Troels
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2

_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net