-
Notifications
You must be signed in to change notification settings - Fork 1
Appropriately handle skipped frames #44
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
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b17cd31
Issue #38
IAlibay c6c3faf
fix dt reading
IAlibay 2e2b27d
Add pyyaml as a dependency
IAlibay e4eaf79
try to fix packaging
IAlibay dc93caf
remove duplicate entry
IAlibay ef3d66c
Add tests for serialization utils
IAlibay 5678982
Add tests for determine_dt
IAlibay 963b583
Add a bunch more tests & checks, also fix cell_angles variable
IAlibay 4133aeb
Add a test to cover the "no unit conversion" case
IAlibay a4cd953
Add ability to read negative state/replica id
IAlibay d200fc9
Add relevant code to deal with skipped frames
IAlibay 6f8f715
My bad, didn't see the variable
IAlibay b8131c7
fix typo
IAlibay b20c047
Update src/openfe_analysis/reader.py
IAlibay 9fc09e7
Address review comments
IAlibay 5e75874
Apply suggestions from code review
IAlibay 00ddea3
Merge branch 'fix_nsteps' into masked_frames
IAlibay d7f4ae9
Add a few things from the review
IAlibay e5870e3
Update src/openfe_analysis/utils/multistate.py
hannahbaumann 331b47e
Switch to new results
hannahbaumann 1329a58
Update test import
hannahbaumann 19bc7ba
Testing out something
hannahbaumann 9e38285
Add check for the presence of PositionInterval attr
hannahbaumann a78ac5b
Add test skipped velocities
hannahbaumann d2eface
Check if marking tests as flaky solves the problems
hannahbaumann e4964a6
Small fixes for tests
hannahbaumann 1b9cd3c
Add pytest-rerunfailure
hannahbaumann 0f5cfef
Remove unnecessary lines
hannahbaumann cd405e4
Add pytest.warn checks
hannahbaumann 2d628d0
Add test for no positions at frame 1
hannahbaumann c709284
Small update test
hannahbaumann faa5546
Add test for time
hannahbaumann 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
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
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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| from importlib import resources | ||
| import pooch | ||
| import pytest | ||
|
|
||
|
|
||
| RFE_OUTPUT = pooch.create( | ||
| path=pooch.os_cache("openfe_analysis"), | ||
| base_url="doi:10.6084/m9.figshare.24101655", | ||
| registry={ | ||
| "checkpoint.nc": "5af398cb14340fddf7492114998b244424b6c3f4514b2e07e4bd411484c08464", | ||
| "db.json": "b671f9eb4daf9853f3e1645f9fd7c18150fd2a9bf17c18f23c5cf0c9fd5ca5b3", | ||
| "hybrid_system.pdb": "07203679cb14b840b36e4320484df2360f45e323faadb02d6eacac244fddd517", | ||
| "simulation.nc": "92361a0864d4359a75399470135f56642b72c605069a4c33dbc4be6f91f28b31", | ||
| "simulation_real_time_analysis.yaml": "65706002f371fafba96037f29b054fd7e050e442915205df88567f48f5e5e1cf", | ||
| } | ||
| ) | ||
|
|
||
|
|
||
| RFE_OUTPUT_skipped_frames = pooch.create( | ||
| path=pooch.os_cache("openfe_analysis_skipped"), | ||
| base_url="doi:10.6084/m9.figshare.28263203", | ||
| registry={ | ||
| "hybrid_system.pdb": "77c7914b78724e568f38d5a308d36923f5837c03a1d094e26320b20aeec65fee", | ||
| "simulation.nc": "6749e2c895f16b7e4eba196261c34756a0a062741d36cc74925676b91a36d0cd", | ||
| } | ||
| ) | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def simulation_nc(): | ||
| return RFE_OUTPUT.fetch("simulation.nc") | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def simulation_skipped_nc(): | ||
| return RFE_OUTPUT_skipped_frames.fetch("simulation.nc") | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def hybrid_system_pdb(): | ||
| return RFE_OUTPUT.fetch("hybrid_system.pdb") | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def hybrid_system_skipped_pdb(): | ||
| return RFE_OUTPUT_skipped_frames.fetch("hybrid_system.pdb") | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def mcmc_serialized(): | ||
| return ( | ||
| '_serialized__class_name: LangevinDynamicsMove\n' | ||
| '_serialized__module_name: openmmtools.mcmc\n' | ||
| 'collision_rate: !Quantity\n unit: /picosecond\n value: 1\n' | ||
| 'constraint_tolerance: 1.0e-06\nn_restart_attempts: 20\n' | ||
| 'n_steps: 625\nreassign_velocities: false\n' | ||
| 'timestep: !Quantity\n unit: femtosecond\n value: 4\n' | ||
| ) |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.