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

Improve CV storage error message about missing templates #935

Merged

Conversation

dwhswenson
Copy link
Member

In netcdfplus, storing CVs (PseudoAttributes) requires a template object to be already stored. Originally we only had CVs that mapped snapshots to computed values, but eventually @jhprinz added the ability to use other objects (like trajectories) as inputs. However, the error message didn't get updated, and it is very confusing to get an error message saying to save a snapshot when you already have a snapshot saved (but need to save a trajectory).

This whole issue will be irrelevant with SimStore, but might as well fix the confusing error message.

@dwhswenson dwhswenson changed the title Improve error message for missing templates Improve CV storage error message about missing templates Oct 13, 2020
@dwhswenson
Copy link
Member Author

I'll leave this up for 24 hours to allow time for review and comment. But it's a pretty trivial fix that is definitely clearer than the previous error message. Will merge no earlier that 14:30 GMT (16:30 local) on Wed 14 Oct.

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, seems a lot clearer

@dwhswenson dwhswenson merged commit 42d186f into openpathsampling:master Oct 14, 2020
@dwhswenson dwhswenson deleted the storage-error-message branch October 14, 2020 15:08
@dwhswenson dwhswenson mentioned this pull request Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants