Changeset 8d56a6 for doc/userguide
- Timestamp:
- Jun 21, 2018, 8:31:25 AM (7 years ago)
- Branches:
- Candidate_v1.6.1, ChemicalSpaceEvaluator
- Children:
- d83d64, f5ea10
- Parents:
- 3e334e (diff), 4fc0ea (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/userguide/userguide.xml
r3e334e r8d56a6 2669 2669 the python interface described below, i.e. it is a full python script 2670 2670 (that however requires the so-called <emphasis role="italic">pyMoleCuilder</emphasis> module).</para> 2671 <note>The python session will store a file with python commands using named arguments. As some actions have quite 2672 a number of arguments, all of them end up in a single function call. This makes it very hazard-prone to mix them up. 2673 Therefore, it is <emphasis>strongly</emphasis> recommended to always use named arguments in python scripts 2674 when employing MoleCuilder commands.</note> 2675 <para>When using named arguments for MoleCuilder commands in Python scripts, remember that dashes ("-") in 2676 argument names have been converted to underscores ("_") as the former characters are illegal. Apart from that 2677 the argument names resemble exactly the token names as encountered on the command line, e.g. 2678 <programlisting> 2679 pyMoleCuilder.CommandVerbose(verbose="1") 2680 ... 2681 </programlisting> 2682 where the keyword argument "verbose" is for the Action that changes MoleCuilder's output verbosity. Also, 2683 you see that arguments are always given as string. 2684 </para> 2671 2685 </section> 2672 2686 <section xml:id="sessions.load-session"> … … 3058 3072 <para>Therefore, more complex python scripts need to be called with 3059 3073 python and a set PYTHONPATH as described above.</para> 3074 <note>It is <emphasis>strongly</emphasis> recommended to always use named arguments in python scripts 3075 when employing MoleCuilder commands. As commands tend to have many arguments, it is very easy to mix 3076 them up as python is not a strongly typed language.</note> 3060 3077 </section> 3061 3078 </chapter>
Note:
See TracChangeset
for help on using the changeset viewer.