Skip to content

Commit d57c6df

Browse files
committed
rename INIT_TRAJ to INIT_CONDS
This will generally take a sample set
1 parent dfee840 commit d57c6df

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
*.nc
2+
_installed_version.py
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

‎paths_cli/cli.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def format_commands(self, ctx, formatter):
7676
openpathsampling strip-snapshots --help
7777
"""
7878

79-
def main():
79+
def main(): # no-cov
8080
cli = OpenPathSamplingCLI(
8181
name="openpathsampling",
8282
help=main_help,
8383
context_settings=CONTEXT_SETTINGS
8484
)
8585
cli()
8686

87-
if __name__ == '__main__':
87+
if __name__ == '__main__': # no-cov
8888
main()
8989
# print("list commands:", cli.list_commands())

‎paths_cli/parameters.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ def init_traj_fallback(parameter, storage, name):
135135
fallback=None
136136
)
137137

138-
INIT_TRAJ = OPSStorageLoadSingle(
139-
param=Option('-t', '--init-traj',
140-
help="identifier for initial trajectory"),
138+
INIT_CONDS = OPSStorageLoadSingle(
139+
param=Option('-t', '--init-conds',
140+
help=("identifier for initial conditions "
141+
+ "(sample set or trajectory")),
141142
store='tags',
142143
num_store='samplesets',
143144
fallback=init_traj_fallback

‎paths_cli/tests/test_parameters.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def test_get(self, getter):
128128
self._getter_test(getter)
129129

130130

131-
class TestINIT_TRAJ(ParamInstanceTest):
132-
PARAMETER = INIT_TRAJ
131+
class TestINIT_CONDS(ParamInstanceTest):
132+
PARAMETER = INIT_CONDS
133133
def setup(self):
134-
super(TestINIT_TRAJ, self).setup()
134+
super(TestINIT_CONDS, self).setup()
135135
self.traj = make_1d_traj([-0.1, 1.0, 4.4, 7.7, 10.01])
136136
ensemble = self.scheme.network.sampling_ensembles[0]
137137
self.sample_set = paths.SampleSet([

0 commit comments

Comments
 (0)