Repository navigation
"Hooks" for ShootFromSnapshotsSimulation (i.e., committor) #755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dwhswenson
merged 23 commits into
openpathsampling:master
from
dwhswenson:committor_hooks
Jun 29, 2021
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
710eccb
Start to path simulator hooks
dwhswenson 64639b7
Tests for attaching hooks (generic)
dwhswenson c34bc67
Hooks-based approach seems to work in Committor
dwhswenson 789784b
Add hook state for after_step hook
dwhswenson c4803d4
Add after_step hook_state to tests
dwhswenson 83cf746
fix problem with hook state for hooks test sim
dwhswenson 3112541
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson fad83f6
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 520abf2
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 4a69542
move hooks to beta
dwhswenson c2597bb
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 7b0690b
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 6d1e134
tests for StorageHook
dwhswenson a2611f1
tests for ShootFromSnapshotsOutputHook
dwhswenson 40a7694
attempt to clean up for Py2
dwhswenson 5dcd421
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 1d66070
Add docs on hooks
dwhswenson 45a774e
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 89473af
Add some other coverage ignore options
dwhswenson a9df664
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson 22461c6
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson be22dd1
Merge remote-tracking branch 'upstream/master' into committor_hooks
dwhswenson d59b306
before_sim gets kwargs; after_sim gets hook_state
dwhswenson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tests for StorageHook
- Loading branch information
commit 6d1e134ed667cdc38bc9d53c57a37f158b2191c9
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,17 +20,17 @@ class PathSimulatorHook(StorableNamedObject): | |||||||||
| 'after_simulation'] | ||||||||||
|
|
||||||||||
| def before_simulation(self, sim): | ||||||||||
| pass | ||||||||||
| pass # pragma: no-cover | ||||||||||
|
|
||||||||||
| def before_step(self, sim, step_number, step_info, state): | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| pass | ||||||||||
| pass # pragma: no-cover | ||||||||||
|
|
||||||||||
| def after_step(self, sim, step_number, step_info, state, results, | ||||||||||
| hook_state): | ||||||||||
|
Comment on lines
+28
to
+29
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| pass | ||||||||||
| pass # pragma: no-cover | ||||||||||
|
|
||||||||||
| def after_simulation(self, sim): | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| pass | ||||||||||
| pass # pragma: no-cover | ||||||||||
|
|
||||||||||
|
|
||||||||||
| class StorageHook(PathSimulatorHook): | ||||||||||
|
|
@@ -96,9 +96,10 @@ def before_step(self, sim, step_number, step_info, state): | |||||||||
| ) | ||||||||||
|
|
||||||||||
|
|
||||||||||
| class LiveVisualizerHook(PathSimulatorHook): | ||||||||||
| pass | ||||||||||
| # TODO: here are some other hooks to implement in the future | ||||||||||
| # class LiveVisualizerHook(PathSimulatorHook): | ||||||||||
| # pass | ||||||||||
|
|
||||||||||
|
|
||||||||||
| class PathSamplingOutputHook(PathSimulatorHook): | ||||||||||
| pass | ||||||||||
| # class PathSamplingOutputHook(PathSimulatorHook): | ||||||||||
| # pass | ||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if another hook implements more kwargs here it should not error out