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 ([email protected])
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/[email protected]
>
>
>
> ------------------------------------------------------------------------------
> 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 ([email protected])
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/[email protected]
>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]

Reply via email to