Changeset c1446cd


Ignore:
Timestamp:
May 8, 2017, 2:00:28 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
c8165c
Parents:
05a2c5
git-author:
Frederik Heber <heber@…> (03/23/17 17:11:07)
git-committer:
Frederik Heber <frederik.heber@…> (05/08/17 14:00:28)
Message:

DOCU: Added note on necessity of wait() to Python section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/userguide/userguide.xml

    r05a2c5 rc1446cd  
    25182518      under the command-line interface and look up the function name via
    25192519      help.</para>
     2520      <para>You can freely mix calls to the pymolecuilder module and other python commands.</para>
     2521      <note>However, be aware that all Actions are executed in another thread,
     2522      i.e. run in parallel. That means that a pymolecuilder command is not
     2523      necessarily finished when python steps on to the next line!</note>
     2524      <para>In order to make python wait for the Actions to finish before
     2525      stepping, there is the special wait() command.</para>
     2526      <programlisting>
     2527         mol.MoleculeLoad("...")
     2528         mol.wait()
     2529      </programlisting>
     2530      <para>This will continue first after the molecule has been fully loaded.
     2531      </para>
     2532      <warning>These wait()s will have no effect if the python script is loaded
     2533      via the "load-session" command inside a User Interface (command-line,
     2534      GUI, ...) as this would cause the queue to wait indefinitely, namely till
     2535      the load-session itself would have finished.</warning>
     2536      <para>Therefore, more complex python scripts need to be called with
     2537      python and a set PYTHONPATH as described above.</para>
    25202538    </section>
    25212539  </chapter>
Note: See TracChangeset for help on using the changeset viewer.