Skip to content

Conversation

@oliverdutton
Copy link
Contributor

@oliverdutton oliverdutton commented Feb 25, 2021

Not sure how you want to manage it, but I updated the gromacs tps example to use the experimental SimStore. It works. As currently CVs are under 'storable_functions' I make a dict then select for choosing named cv's. Other than that it's been dropped in.

cv_dict = {fn.name:fn for fn in list(flexible.storable_functions)} # Extract the cv's from storage where they're under storable_functions
phi = cv_dict['phi']
psi = cv_dict['psi']

Obviously don't accept this pull request. I'm doing it to highlight the commit, which may be useful to you.

Minimal changes made to fit new usage.
I've rewritten bits like the Engine to be taken directly from the paths module to make sure the monkey_patch_all passed through. Only openpathsampling.visualise is imported separately in notebook 3, but this doesn't actually have anything to do with storage as it's just visualising the data
@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #984 (3758f21) into master (a09f2b3) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
- Coverage   80.59%   80.58%   -0.01%     
==========================================
  Files         138      138              
  Lines       14671    14671              
==========================================
- Hits        11824    11823       -1     
- Misses       2847     2848       +1     
Impacted Files Coverage Δ
openpathsampling/netcdfplus/cache.py 61.18% <0.00%> (-0.35%) ⬇️

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 a09f2b3...3758f21. Read the comment docs.

@dwhswenson
Copy link
Member

As currently CVs are under 'storable_functions' I make a dict then select for choosing named cv's.

I fixed this this morning, literally just a couple hours before your commits. I haven't even opened the PR yet. I'll be combining it with some additional testing for SimStore. Here's the commit: dwhswenson@6ef1284

We'll keep this on hold until that can get merged in (I expect to open the PR on that tomorrow; probably to be merged by end of weekend).

@dwhswenson
Copy link
Member

With #985 merged in, could you try against that? It should now work without needing to build the cv_dict (that should now be in storage.cvs).

@oliverdutton
Copy link
Contributor Author

I've rerun with the lastest master branch pulled in, can confirm that old style access to CVs is functional again.

Updated to use storage.cvs['cv_name']
Also limited number of cpu cores in md_run options '-nt 4' as errors
caused if it uses >=16 cores because domains too large to decompose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants