Skip to content

Improve CV storage error message about missing templates#935

Merged
dwhswenson merged 1 commit into
openpathsampling:masterfrom
dwhswenson:storage-error-message
Oct 14, 2020
Merged

Improve CV storage error message about missing templates#935
dwhswenson merged 1 commit into
openpathsampling:masterfrom
dwhswenson:storage-error-message

Conversation

@dwhswenson

Copy link
Copy Markdown
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
Copy Markdown
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.

@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, 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.

2 participants