Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
71044ec
update
jhprinz Aug 13, 2016
c85fc53
fix
jhprinz Aug 13, 2016
c4c8724
fix
jhprinz Aug 13, 2016
67534f1
add tests
jhprinz Aug 14, 2016
044aa82
Merge branch 'ala' into enginefail
jhprinz Aug 19, 2016
88cd009
Merge branch 'ala' into enginefail
jhprinz Aug 19, 2016
ee8590f
update
jhprinz Aug 19, 2016
5e0f6e6
add tests
jhprinz Aug 19, 2016
6051a80
udpate
jhprinz Aug 19, 2016
c499aa5
more tests
jhprinz Aug 19, 2016
a0bf940
added correct errors
jhprinz Aug 19, 2016
f81394d
fix
jhprinz Aug 19, 2016
3895254
updates
jhprinz Aug 19, 2016
6e830cf
Merge branch 'ala' into enginefail
jhprinz Aug 19, 2016
d2cdd58
little updates
jhprinz Aug 20, 2016
50aed24
Merge branch 'ala' into enginefail
jhprinz Aug 21, 2016
61411d8
fix a special case in a test
jhprinz Aug 21, 2016
d8d696f
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 22, 2016
3daf330
add tests
jhprinz Aug 23, 2016
207546d
fix test using nan template
jhprinz Aug 23, 2016
150f464
update test
jhprinz Aug 23, 2016
3acb843
fix default options
jhprinz Aug 23, 2016
0f81a6e
fix test
jhprinz Aug 23, 2016
f8061b5
fixes
jhprinz Aug 23, 2016
8bf1568
cleanup
jhprinz Aug 23, 2016
f7113aa
add example notebook
jhprinz Aug 23, 2016
5643ecf
little cleanup
jhprinz Aug 23, 2016
9810676
little cleanup
jhprinz Aug 23, 2016
c2eff38
little fix in generate
jhprinz Aug 23, 2016
25cfb40
docstring
jhprinz Aug 23, 2016
454749e
from default `stop` to `fail`
jhprinz Aug 23, 2016
f275912
revert notebook
jhprinz Aug 23, 2016
873a892
revert
jhprinz Aug 23, 2016
76009a1
revert
jhprinz Aug 23, 2016
003758a
revert
jhprinz Aug 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
little updates
  • Loading branch information
jhprinz committed Aug 20, 2016
commit d2cdd58d5e72309599bb998666a752ae37bed94a
17 changes: 16 additions & 1 deletion openpathsampling/analysis/move_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,19 @@ def initial_conditions_from_trajectories(self, trajectories,
strategies : dict
a dict that specifies the options used when ensemble functions
are used to create a new sample.
preconditions : list of str
a list of possible steps to modify the initial list of trajectories.
possible choices are

1. `sort-shortest` - sorting by shortest first,
2. `sort_median` - sorting by the middle one first and then in
move away from the median length
3. `sort-longest` - sorting by the longest first
4. `reverse` - reverse the order and
5. `mirror` which will add the reversed trajectories to the
list in the same order

Default is `None` which means to do nothing.
reuse_strategy : str
if `avoid` then reusing the same same trajectory twice is avoided.
`avoid-symmetric` will also remove reversed copies
Expand All @@ -383,8 +396,10 @@ def initial_conditions_from_trajectories(self, trajectories,
if sample_set is None:
sample_set = paths.SampleSet([])

ensembles = self.list_initial_ensembles()

return sample_set.generate_from_trajectories(
self.list_initial_ensembles(),
ensembles,
trajectories,
preconditions,
strategies,
Expand Down
1 change: 0 additions & 1 deletion openpathsampling/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ def generate_from_trajectories(
list in the same order

Default is `None` which means to do nothing.

strategies : dict
a dict that specifies the options used when ensemble functions
are used to create a new sample.
Expand Down
8 changes: 8 additions & 0 deletions openpathsampling/tests/testmovescheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,14 @@ def assert_init_cond(sample_set, ensembles, expected):
strategies=['get']
)

# for t1 in map(lambda x: init_cond[x].trajectory, ensembles):
# for i, t2 in enumerate([traj1, traj2, traj3, traj1r, traj2r, traj3r]):
# print i,
# if t1 == t2:
# print '=='
# else:
# print '!='

assert_init_cond(
init_cond, ensembles,
[traj1, traj2, traj3] + [traj3] + [traj3r] * 3
Expand Down