Skip to content
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

SimStore: Fix issue with internalized snapshot box vectors #1086

Merged
merged 2 commits into from Oct 31, 2021

Conversation

dwhswenson
Copy link
Member

@dwhswenson dwhswenson commented Oct 29, 2021

This fixes a bug when using engines.features.box_vectors in SimStore. Previously, these were not saved.

As far as I can tell, this bug only occurs if you are using the internalized Gromacs snapshots, introduced in #933, and storing them with the new SimStore storage system. (However, it could be an issue for engines that aren't included in core OPS.) The OpenMM engine uses a box vectors feature in engines.features.statics and the Gromacs engine uses a box vectors feature in engines.external_snapshots.features.box_vectors, so neither of these are affected. I only found this bug when I was going to suggest using SimStore + internalized snapshots as part of a user question that came up today. It seems that I overlooked this feature when adding SimStore storage support.

New tests fail without the (simple) fix in the feature file and pass with the fix.

@dwhswenson dwhswenson added bugfix PRs fixing bugs experimental labels Oct 29, 2021
@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #1086 (6a68f24) into master (ea605e8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1086   +/-   ##
=======================================
  Coverage   81.56%   81.56%           
=======================================
  Files         140      140           
  Lines       15451    15452    +1     
=======================================
+ Hits        12603    12604    +1     
  Misses       2848     2848           
Impacted Files Coverage Δ
openpathsampling/engines/features/box_vectors.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea605e8...6a68f24. Read the comment docs.

Copy link
Member

@sroet sroet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dwhswenson dwhswenson merged commit 0ca38e4 into openpathsampling:master Oct 31, 2021
@dwhswenson dwhswenson deleted the simstore-box-vectors branch October 31, 2021 11:50
@dwhswenson dwhswenson mentioned this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PRs fixing bugs experimental
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants