Candidate_v1.6.1
ChemicalSpaceEvaluator
PythonUI_with_named_parameters
TremoloParser_IncreasedPrecision
Last change
on this file since e7ad08 was e7ad08, checked in by Frederik Heber <frederik.heber@…>, 7 years ago |
Python interface now converts dashes in tokens to underscores, store-session used keyword arguments.
- MoleCuilder's python functions (i.e. commands) typically have quite a number
of arguments and therefore can be easily confused. We circumvent this by
using keyword (or named) arguments that are also independent of position.
Moreover, in that case only the non-default arguments need to be given.
- TESTS: Marked failing python tests as XFAIL for the moment.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | #
|
---|
2 | # MoleCuilder - creates and alters molecular systems
|
---|
3 | # Copyright (C) 2015 Frederik Heber
|
---|
4 | #
|
---|
5 | # This program is free software: you can redistribute it and/or modify
|
---|
6 | # it under the terms of the GNU General Public License as published by
|
---|
7 | # the Free Software Foundation, either version 3 of the License, or
|
---|
8 | # (at your option) any later version.
|
---|
9 | #
|
---|
10 | # This program is distributed in the hope that it will be useful,
|
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | # GNU General Public License for more details.
|
---|
14 | #
|
---|
15 | # You should have received a copy of the GNU General Public License
|
---|
16 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
17 | #
|
---|
18 | ### dry run
|
---|
19 |
|
---|
20 | AT_SETUP([Standard Options - dry run and store session])
|
---|
21 | AT_KEYWORDS([options dry-run no-dry-run store-session])
|
---|
22 | AT_SKIP_IF([../../molecuilder --help store-session; if test $? -eq 5; then /bin/true; else /bin/false; fi])
|
---|
23 | AT_XFAIL_IF([/bin/true])
|
---|
24 |
|
---|
25 | # sample session
|
---|
26 | file="session.py"
|
---|
27 | AT_CHECK([../../molecuilder --dry-run --input hydrogen.xyz --add-atom 1 --domain-position "0,0,0" --select-all-atoms --translate-atoms --position "5,5,5" --no-dry-run --store-session $file --session-type python], 0, [ignore], [ignore])
|
---|
28 | AT_CHECK([test -f $file], 0, [ignore], [ignore])
|
---|
29 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Options/DryRun/post/$file], 0, [ignore], [ignore])
|
---|
30 |
|
---|
31 | AT_CLEANUP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.