Skip to content

Prevent netcdfplus from trying to load netcdfplus CVs as SimStore CVs#1003

Merged
dwhswenson merged 2 commits into
openpathsampling:masterfrom
dwhswenson:netcdfplus-not-load-simstore
Apr 9, 2021
Merged

Prevent netcdfplus from trying to load netcdfplus CVs as SimStore CVs#1003
dwhswenson merged 2 commits into
openpathsampling:masterfrom
dwhswenson:netcdfplus-not-load-simstore

Conversation

@dwhswenson

Copy link
Copy Markdown
Member

As of #995, it appears that netcdfplus tries to load CVs as SimStore CVs. This is apparently because netcdfplus maps a class name (not fully qualified; just the class name) to a class. And once SimStore CVs were found in the chain of subclasses, netcdfplus replaced the old CVs with the new ones. This would lead to errors when loading old CVs (which do not have the same storage dict as new CVs).

The solution is to exclude classes in the openpathsampling.experimental.storage subpackage from being listed as classes that netcdfplus can load.

@dwhswenson dwhswenson added bugfix PRs fixing bugs experimental labels Apr 7, 2021
@dwhswenson

Copy link
Copy Markdown
Member Author

I have no idea why GHA isn't running this... going to close/reopen to see if that triggers a build.

@dwhswenson dwhswenson closed this Apr 7, 2021
@dwhswenson dwhswenson reopened this Apr 7, 2021
@codecov

codecov Bot commented Apr 7, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1003 (ffb6ed6) into master (523de5f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1003   +/-   ##
=======================================
  Coverage   80.61%   80.61%           
=======================================
  Files         138      138           
  Lines       14695    14695           
=======================================
  Hits        11847    11847           
  Misses       2848     2848           
Impacted Files Coverage Δ
openpathsampling/netcdfplus/base.py 77.93% <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 523de5f...ffb6ed6. Read the comment docs.

@sroet sroet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@dwhswenson

Copy link
Copy Markdown
Member Author

This is ready for review and comment. I will leave it open for at least 24 hours, merging no earlier than Thu 08 Apr 16:00 GMT (18:00 local).

(Forgot to add that once tests passed!)

@dwhswenson dwhswenson merged commit 2ff606f into openpathsampling:master Apr 9, 2021
@dwhswenson dwhswenson deleted the netcdfplus-not-load-simstore branch April 9, 2021 09:15
@dwhswenson dwhswenson mentioned this pull request Jul 5, 2021
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.

2 participants