Skip to content

Commit 8773e7f

Browse files
committed
add descriptions to strategies
'scheme' root compiler name, not movescheme
1 parent 1027f8b commit 8773e7f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

paths_cli/compiling/root_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CategoryCompilerRegistrationError(Exception):
1818
'volume',
1919
'state',
2020
'network',
21-
'movescheme',
21+
'scheme',
2222
]
2323

2424
COMPILE_ORDER = _DEFAULT_COMPILE_ORDER.copy()

paths_cli/compiling/strategies.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def _group_parameter(group_name):
4848
REPLACE_TRUE_PARAMETER
4949
],
5050
name='one-way-shooting',
51+
description="Use one-way-shooting moves in this move scheme.",
5152
)
5253
build_one_way_shooting_strategy = ONE_WAY_SHOOTING_STRATEGY_PLUGIN
5354

@@ -70,6 +71,8 @@ def _group_parameter(group_name):
7071
REPLACE_TRUE_PARAMETER
7172
],
7273
name='nearest-neighbor-repex',
74+
description=("Use replica exchange only between neearest-neighbor "
75+
"interfaces in this move scheme"),
7376
)
7477

7578
build_all_set_repex_strategy = StrategyCompilerPlugin(
@@ -79,6 +82,8 @@ def _group_parameter(group_name):
7982
REPLACE_TRUE_PARAMETER
8083
],
8184
name='all-set-repex',
85+
description=("Use replica exchange allowing swap attempts between any "
86+
"pair of ensembles within the same interface set."),
8287
)
8388

8489
build_path_reversal_strategy = StrategyCompilerPlugin(
@@ -88,6 +93,7 @@ def _group_parameter(group_name):
8893
REPLACE_TRUE_PARAMETER,
8994
],
9095
name='path-reversal',
96+
description="Use path reversal moves in this move scheme.",
9197
)
9298

9399
build_minus_move_strategy = StrategyCompilerPlugin(
@@ -98,6 +104,9 @@ def _group_parameter(group_name):
98104
REPLACE_TRUE_PARAMETER,
99105
],
100106
name='minus',
107+
description=("Use the minus move in this move scheme. This strategy "
108+
"uses the M-shaped, or multiple interface set minus "
109+
"move, and always keeps a sample in the minus interface."),
101110
)
102111

103112
build_single_replica_minus_move_strategy = StrategyCompilerPlugin(
@@ -108,6 +117,12 @@ def _group_parameter(group_name):
108117
REPLACE_TRUE_PARAMETER,
109118
],
110119
name='single-replica-minus',
120+
description=("Use the single-replica minus move in this move scheme. "
121+
"This strategy does not keep a replica in the minus "
122+
"ensemble; instead, that trajectory is only temporarily "
123+
"created during this move. This should not be used if "
124+
"there are multiple interface sets with the same initial "
125+
"state."),
111126
)
112127

113128
STRATEGY_COMPILER = CategoryPlugin(StrategyCompilerPlugin,

0 commit comments

Comments
 (0)